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} >