From 141e9113c7dc4483ab049137b4e4ac731657cfb0 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Tue, 10 Dec 2024 13:40:28 +0700 Subject: update code --- src/core/components/elements/Navbar/NavbarDesktop.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/core/components/elements/Navbar') diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index 253a2b03..2776c1f3 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -117,7 +117,7 @@ const NavbarDesktop = () => { // }; // handleCartChange(); - setCartCount(cart?.products?.length) + setCartCount(cart?.products?.length); // window.addEventListener('localStorageChange', handleCartChange); @@ -172,7 +172,7 @@ const NavbarDesktop = () => { Tentang Indoteknik - + Pembayaran Tempo @@ -370,7 +370,11 @@ const NavbarDesktop = () => { )} {auth && ( <> -
+
Halo, {auth?.name}
-- cgit v1.2.3