From 3c1e52696da9d82a599864cb896629b2f084efdd Mon Sep 17 00:00:00 2001 From: Omar Tariq <65053572+OmarTariq612@users.noreply.github.com> Date: Thu, 7 Mar 2024 11:23:54 +0200 Subject: [PATCH] check localstorage for user info before redirecting to the login page --- ui/src/App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/App.js b/ui/src/App.js index a7d14e2d..d1b32d1c 100644 --- a/ui/src/App.js +++ b/ui/src/App.js @@ -17,6 +17,8 @@ const App = () => { console.log("reloaded user", localUser); } } + + checkUserData() document.addEventListener('storage', checkUserData)