fix:qudo auth

This commit is contained in:
Rama Priyanto 2025-02-11 08:49:14 +07:00
parent 1344de4c48
commit 1ebf0f9b56
1 changed files with 5 additions and 5 deletions

View File

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