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(); }}