We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67785d6 commit 209aec6Copy full SHA for 209aec6
1 file changed
src/renderer/hooks/useNotifications.ts
@@ -14,6 +14,7 @@ import {
14
markNotificationThreadAsDone,
15
markNotificationThreadAsRead,
16
} from '../utils/api/client';
17
+import { getAccountUUID } from '../utils/auth/utils';
18
import {
19
areAllAccountErrorsSame,
20
doesAllAccountsHaveErrors,
@@ -83,8 +84,9 @@ export const useNotifications = (): NotificationsState => {
83
84
async (account: Account) => {
85
setStatus('loading');
86
87
+ const accountUUID = getAccountUUID(account);
88
const updatedNotifications = notifications.filter(
- (notification) => notification.account !== account,
89
+ (notification) => getAccountUUID(notification.account) !== accountUUID,
90
);
91
92
setNotifications(updatedNotifications);
0 commit comments