From 55c8d5094bee5bf211538c2e56dd3d584507e73e Mon Sep 17 00:00:00 2001 From: Cooper Ransom Date: Sun, 3 Mar 2024 00:47:37 -0500 Subject: [PATCH] Server's migrated sucessfully removing downtime page --- src/setup/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/setup/App.tsx b/src/setup/App.tsx index eabf2350..d37c8714 100644 --- a/src/setup/App.tsx +++ b/src/setup/App.tsx @@ -104,7 +104,8 @@ function App() { useHistoryListener(); useOnlineListener(); const { t } = useTranslation(); - const [showDowntime, setShowDowntime] = useState(false); + const maintenance = false; + const [showDowntime, setShowDowntime] = useState(maintenance); const handleButtonClick = () => { setShowDowntime(false); @@ -116,7 +117,7 @@ function App() { setShowDowntime(true); sessionStorage.setItem("downtimeToken", "true"); } - }, []); + }, [setShowDowntime]); return (