Skip to content

Commit

Permalink
update the set
Browse files Browse the repository at this point in the history
  • Loading branch information
lei9444 committed Sep 21, 2020
1 parent 1afc95e commit b6451cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const addNotificationInternal = ({ set }: CallbackInterface, notification

export const deleteNotificationInternal = ({ reset, set }: CallbackInterface, id: string) => {
reset(notificationsState(id));
set(notificationIdsState, (items) => {
return [...items].filter((item) => item !== id);
set(notificationIdsState, (notifications) => {
return notifications.filter((notification) => notification !== id);
});
};

Expand Down

0 comments on commit b6451cb

Please sign in to comment.