Compare commits

..

No commits in common. "521e6690cb3a8b5512d61a76800cffbcc667b544" and "1d3fcff85998bb2f84b74b85995093f990b633bd" have entirely different histories.

2 changed files with 6 additions and 6 deletions

View File

@ -440,7 +440,7 @@ const Header = () => {
<a
aria-label="click to log out"
className="dropdown-item cusor-pointer"
onClick={()=>logout()}
onClick={()=>handleLogout()}
>
{logouting ? "Please Wait":<> <i className="bx bx-log-out me-2"></i>
<span className="align-middle">SignOut</span></>}

View File

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