From f609c1126ad74d7b412c23441ae543f5022a220c Mon Sep 17 00:00:00 2001 From: Tal-Ben-Avi Date: Mon, 19 Feb 2024 13:05:26 +0200 Subject: [PATCH] fix display from "" to "block" --- .../src/components/ProvisionsPopup/ProvisionsPopup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx index c7fdafc1f6..2fdb0c0769 100644 --- a/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx +++ b/workspaces/website/src/components/ProvisionsPopup/ProvisionsPopup.tsx @@ -17,7 +17,7 @@ const ProvisionsPopup = () => { useEffect(() => { const popupState = window.localStorage.getItem("ProvisionsPopup state"); - if (popupState === "false") setIsOpen(true); + if (!popupState || popupState === "false") setIsOpen(true); }, []); const onClose = (event: React.MouseEvent) => { @@ -39,7 +39,7 @@ const ProvisionsPopup = () => { bottom="0" right="0" left="0" - display={isOpen ? "" : "none"} + display={isOpen ? "block" : "none"} backgroundColor="rgba(0,0,0,0.7)" onClick={onClose} >