Skip to content

Commit

Permalink
fix display from "" to "block"
Browse files Browse the repository at this point in the history
  • Loading branch information
TalBenAvi committed Feb 19, 2024
1 parent aae35fc commit f609c11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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}
>
Expand Down

0 comments on commit f609c11

Please sign in to comment.