Fixed notification removal from settings. #1594

This commit is contained in:
morpheus65535 2021-10-28 06:50:50 -04:00
parent 3d936ffccf
commit 58de876f19
1 changed files with 1 additions and 2 deletions

View File

@ -92,8 +92,7 @@ const NotificationModal: FunctionComponent<ModalProps & BaseModalProps> = ({
variant="danger" variant="danger"
onClick={() => { onClick={() => {
if (current) { if (current) {
current.enabled = false; update({ ...current, enabled: false });
update(current);
} }
closeModal(); closeModal();
}} }}