Skip to content

Commit

Permalink
fix notifications on client side
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 14, 2023
1 parent 32204ac commit a9e026e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/stores/notifications/notifications.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function setNotifications(
const currentNotifications = ctx.getState().notifications;
const allNotifications = [...notifications, ...currentNotifications];

const splicedNotifications = uniqBy(allNotifications, 'id');
const splicedNotifications = uniqBy(allNotifications, 'internalId');

ctx.patchState({ notifications: splicedNotifications });
}
Expand Down Expand Up @@ -91,7 +91,7 @@ export function addNotification(
const currentNotifications = ctx.getState().notifications;
const allNotifications = [notification, ...currentNotifications];

const splicedNotifications = uniqBy(allNotifications, 'id');
const splicedNotifications = uniqBy(allNotifications, 'internalId');

ctx.patchState({ notifications: splicedNotifications });
}
Expand Down

0 comments on commit a9e026e

Please sign in to comment.