fix notifications not clearing
This commit is contained in:
parent
edca4d5ceb
commit
6956149a3d
4 changed files with 44 additions and 28 deletions
|
|
@ -33,9 +33,7 @@
|
|||
const unreadIds = ($NOTIFICATIONS || []).filter((n) => !n.isRead).map((n) => n.id);
|
||||
newNotificationIds = unreadIds;
|
||||
|
||||
if (unreadIds.length > 0) {
|
||||
await markNotificationsAsRead(unreadIds);
|
||||
}
|
||||
await markNotificationsAsRead();
|
||||
} catch (error) {
|
||||
toast.error('Failed to load notifications');
|
||||
} finally {
|
||||
|
|
|
|||
Reference in a new issue