diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 26da32b..95c4595 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -26,7 +26,7 @@ const userMenuItems = [ ]; export default function Header() { - const [isLoggedIn, setIsLoggedIn] = useState(false); + const [isLoggedIn, setIsLoggedIn] = useState(!!getToken()); const [isMenuOpen, setIsMenuOpen] = useState(false); const [isUserMenuOpen, setIsUserMenuOpen] = useState(false); const { cartItems } = useCart();