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