From 3c77ddda42efbbbaa318db7dd27bb43d38d6adcb Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Mon, 11 Mar 2024 15:28:05 -0400 Subject: [PATCH] remove leftover code --- app/javascript/App.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/javascript/App.jsx b/app/javascript/App.jsx index b53dc64152..045c787f55 100644 --- a/app/javascript/App.jsx +++ b/app/javascript/App.jsx @@ -34,12 +34,7 @@ export default function App() { // useEffect hook for running notify maintenance banner on page load useEffect(() => { - // set a cookie for a day after maintenance banner dismissed - const maintenanceClosedAt = localStorage.getItem('maintenanceClosedAt'); - const now = new Date(); - const oneDayInMilliseconds = 24 * 60 * 60 * 1000; - - if (maintenanceBanner.data && (!maintenanceClosedAt || now.getTime() - new Date(maintenanceClosedAt).getTime() > oneDayInMilliseconds)) { + if (maintenanceBanner.data) { const toastId = toast.info(maintenanceBanner.data, { position: 'top-center', autoClose: false,