We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a194c76 commit 811029bCopy full SHA for 811029b
src/components/Header/MobileMenu.jsx
@@ -105,9 +105,9 @@ const MobileMenu = ({
105
>
106
<div className="relative">
107
<Heart className="h-5 w-5" />
108
- {wishListData.items.length > 0 && (
+ {wishListData?.items?.length > 0 && (
109
<span className="absolute -top-2 -right-2 bg-red-500 text-white text-xs font-bold rounded-full h-4 w-4 flex items-center justify-center">
110
- {wishListData.items.length}
+ {wishListData?.items?.length}
111
</span>
112
)}
113
</div>
0 commit comments