From 521e6690cb3a8b5512d61a76800cffbcc667b544 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Wed, 24 Sep 2025 15:09:34 +0530 Subject: [PATCH] uncommit important stuff --- src/pages/authentication/TenantSelectionPage.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/authentication/TenantSelectionPage.jsx b/src/pages/authentication/TenantSelectionPage.jsx index a628e683..349c054c 100644 --- a/src/pages/authentication/TenantSelectionPage.jsx +++ b/src/pages/authentication/TenantSelectionPage.jsx @@ -21,11 +21,11 @@ const TenantSelectionPage = () => { const {mutate:handleLogout,isPending:isLogouting} = useLogout(()=>{}) - // useEffect(() => { - // if (localStorage.getItem("ctnt")) { - // navigate("/dashboard"); - // } - // }, [navigate]); + useEffect(() => { + if (localStorage.getItem("ctnt")) { + navigate("/dashboard"); + } + }, [navigate]); useEffect(() => { if (!isLoading && data?.data?.length === 1) {