better UI signal when deleting server notifications from the appbar icon

This commit is contained in:
Aine 2025-02-18 11:28:31 +02:00
parent 84c14f6de2
commit fbb578392d
No known key found for this signature in database
GPG Key ID: 34969C908CCA2804

View File

@ -27,7 +27,10 @@ const useServerNotifications = () => {
const deleteServerNotifications = async () => {
const deleteResponse = await dataProvider.deleteServerNotifications(etkeccAdmin);
if (deleteResponse.success) {
await fetchNotifications();
setServerNotifications({
notifications: [],
success: true,
});
}
};