diff --git a/src/components/Navbars/HomeNavbar.js b/src/components/Navbars/HomeNavbar.js index 8b554c54..8cf5ec32 100644 --- a/src/components/Navbars/HomeNavbar.js +++ b/src/components/Navbars/HomeNavbar.js @@ -43,7 +43,9 @@ import { useAuth } from '../../contexts/AuthContext'; * 2. !isMobile */ const NavItems = ({ isAuthenticated, user }) => { - if (isAuthenticated && user) { + const navigate = useNavigate(); + + if (!isAuthenticated && !user) { return (