refactor notif array delete

This commit is contained in:
Vadim Lev 2022-12-15 13:27:58 +02:00
parent a1b14551bc
commit cdd32caf0b

View file

@ -29,7 +29,7 @@ export class NotificationManager {
deleteNotif = (id) => {
console.log(id);
notificationStore.notifications = [...notificationStore.notifications.filter(item => item.id !== id)]
notificationStore.notifications = notificationStore.notifications.filter(item => item.id !== id)
}
handleAddNotification = (e: Notification) => {