From fbb578392d58ffe6225486c96e1e689c8b4e0739 Mon Sep 17 00:00:00 2001 From: Aine Date: Tue, 18 Feb 2025 11:28:31 +0200 Subject: [PATCH] better UI signal when deleting server notifications from the appbar icon --- src/components/etke.cc/ServerNotificationsBadge.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/etke.cc/ServerNotificationsBadge.tsx b/src/components/etke.cc/ServerNotificationsBadge.tsx index 560cc3d..9628d12 100644 --- a/src/components/etke.cc/ServerNotificationsBadge.tsx +++ b/src/components/etke.cc/ServerNotificationsBadge.tsx @@ -27,7 +27,10 @@ const useServerNotifications = () => { const deleteServerNotifications = async () => { const deleteResponse = await dataProvider.deleteServerNotifications(etkeccAdmin); if (deleteResponse.success) { - await fetchNotifications(); + setServerNotifications({ + notifications: [], + success: true, + }); } };