From 2e736ebaf29ac7f4b29f6ec78e22b576a1899a40 Mon Sep 17 00:00:00 2001 From: saml33 Date: Thu, 5 Jan 2023 22:21:30 +1100 Subject: [PATCH] prevent user setup modal from closing when dismissing a notification --- components/modals/UserSetupModal.tsx | 2 +- components/shared/Modal.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/components/modals/UserSetupModal.tsx b/components/modals/UserSetupModal.tsx index 83883ba0..9ceed198 100644 --- a/components/modals/UserSetupModal.tsx +++ b/components/modals/UserSetupModal.tsx @@ -228,7 +228,7 @@ const UserSetupModal = ({ } return ( - +
{ + if (disableOutsideClose) return + onClose() + } + return (