From 3def74601441f2b192665088fc87eb1b092ad5ee Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 21 Dec 2022 12:41:36 -0800 Subject: [PATCH] Add missing isClosed check for Modal --- ts/components/Modal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/components/Modal.tsx b/ts/components/Modal.tsx index f097108c92..f58860c609 100644 --- a/ts/components/Modal.tsx +++ b/ts/components/Modal.tsx @@ -81,6 +81,10 @@ export function Modal({ }; }, [modalName, isClosed]); + if (isClosed) { + return null; + } + return (