diff --git a/components/shared/nav-bar.tsx b/components/shared/nav-bar.tsx index d0e0f6f..7204cf0 100644 --- a/components/shared/nav-bar.tsx +++ b/components/shared/nav-bar.tsx @@ -163,7 +163,7 @@ export function NavBar({ {products.map(p => ( p.id !== activeProduct.id && handleSwitchProduct(p.id)} + onClick={() => p.id !== activeProduct.id && handleSwitchProduct(p.id)} className={cn( p.id === activeProduct.id && 'bg-primary-container text-primary-container-foreground font-medium' )}