fix nav and color theme

This commit is contained in:
2026-04-15 16:04:19 -06:00
parent 812f197b75
commit 175fead68a
2 changed files with 51 additions and 51 deletions

View File

@@ -8,7 +8,7 @@ import { useAuth } from "@/context/AuthContext";
import { useCart } from "@/context/CartContext";
export default function DisplayNav() {
const { user, token, logout, loading } = useAuth();
const { user, logout, loading } = useAuth();
const { itemCount, selectedStoreId, setStoreId } = useCart();
const router = useRouter();
const [stores, setStores] = useState([]);
@@ -56,7 +56,7 @@ export default function DisplayNav() {
</div>
<div className="nav-auth">
{stores.length > 0 && (
{user && stores.length > 0 && (
<select
className="nav-store-select"
value={selectedStoreId ?? ""}
@@ -132,7 +132,7 @@ export default function DisplayNav() {
<div className="nav-drawer-divider" />
{stores.length > 0 && (
{user && stores.length > 0 && (
<select
className="nav-store-select nav-store-select--drawer"
value={selectedStoreId ?? ""}