Skip to content

Commit

Permalink
change the default from true to false
Browse files Browse the repository at this point in the history
  • Loading branch information
TalBenAvi committed Feb 19, 2024
1 parent 5bcd33b commit aae35fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ArrowRight from "./ArrowRight/ArrowRight";
import { Button } from "@ui/Button";

const ProvisionsPopup = () => {
const [isOpen, setIsOpen] = useState<boolean>(true);
const [isOpen, setIsOpen] = useState<boolean>(false);

const toggleModal = () => setIsOpen((prevState) => !prevState);

Expand All @@ -17,7 +17,7 @@ const ProvisionsPopup = () => {

useEffect(() => {
const popupState = window.localStorage.getItem("ProvisionsPopup state");
if (popupState === "true") setIsOpen(false);
if (popupState === "false") setIsOpen(true);
}, []);

const onClose = (event: React.MouseEvent) => {
Expand Down

0 comments on commit aae35fc

Please sign in to comment.