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) {