Skip to content

Commit 811029b

Browse files
Update src/components/Header/MobileMenu.jsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a194c76 commit 811029b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Header/MobileMenu.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ const MobileMenu = ({
105105
>
106106
<div className="relative">
107107
<Heart className="h-5 w-5" />
108-
{wishListData.items.length > 0 && (
108+
{wishListData?.items?.length > 0 && (
109109
<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}
110+
{wishListData?.items?.length}
111111
</span>
112112
)}
113113
</div>

0 commit comments

Comments
 (0)