better UI signal when deleting server notifications from the appbar icon
This commit is contained in:
parent
84c14f6de2
commit
fbb578392d
@ -27,7 +27,10 @@ const useServerNotifications = () => {
|
||||
const deleteServerNotifications = async () => {
|
||||
const deleteResponse = await dataProvider.deleteServerNotifications(etkeccAdmin);
|
||||
if (deleteResponse.success) {
|
||||
await fetchNotifications();
|
||||
setServerNotifications({
|
||||
notifications: [],
|
||||
success: true,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user