From 58de876f193e8358836b8fd12d25bc7e9d65005c Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 28 Oct 2021 06:50:50 -0400 Subject: [PATCH] Fixed notification removal from settings. #1594 --- frontend/src/Settings/Notifications/components.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/Settings/Notifications/components.tsx b/frontend/src/Settings/Notifications/components.tsx index 16530069d..84add66ca 100644 --- a/frontend/src/Settings/Notifications/components.tsx +++ b/frontend/src/Settings/Notifications/components.tsx @@ -92,8 +92,7 @@ const NotificationModal: FunctionComponent = ({ variant="danger" onClick={() => { if (current) { - current.enabled = false; - update(current); + update({ ...current, enabled: false }); } closeModal(); }}