diff --git a/src/renderer/hooks/useNotifications.ts b/src/renderer/hooks/useNotifications.ts index 1f6e14e6d..974ed76a8 100644 --- a/src/renderer/hooks/useNotifications.ts +++ b/src/renderer/hooks/useNotifications.ts @@ -14,6 +14,7 @@ import { markNotificationThreadAsDone, markNotificationThreadAsRead, } from '../utils/api/client'; +import { getAccountUUID } from '../utils/auth/utils'; import { areAllAccountErrorsSame, doesAllAccountsHaveErrors, @@ -83,8 +84,9 @@ export const useNotifications = (): NotificationsState => { async (account: Account) => { setStatus('loading'); + const accountUUID = getAccountUUID(account); const updatedNotifications = notifications.filter( - (notification) => notification.account !== account, + (notification) => getAccountUUID(notification.account) !== accountUUID, ); setNotifications(updatedNotifications);