diff --git a/components/layout/navbar/NavbarHumas.tsx b/components/layout/navbar/NavbarHumas.tsx index 8a8371c..f8226b2 100644 --- a/components/layout/navbar/NavbarHumas.tsx +++ b/components/layout/navbar/NavbarHumas.tsx @@ -68,11 +68,11 @@ export default function NavbarHumas(props: { size: string }) { const language = storedLanguage((state) => state.locale); const setLanguage = storedLanguage((state) => state.setLocale); - // useEffect(() => { - // if (!isAuthenticated) { - // onLogout(); - // } - // }, [token]); + useEffect(() => { + if (!isAuthenticated) { + onLogout(); + } + }, [token]); const onLogout = () => { Object.keys(Cookies.get()).forEach((cookieName) => {