From 141e9113c7dc4483ab049137b4e4ac731657cfb0 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 10 Dec 2024 13:40:28 +0700
Subject: <iman> update code

---
 src/core/components/elements/Navbar/NavbarDesktop.jsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'src/core/components/elements/Navbar/NavbarDesktop.jsx')

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 = () => {
                 <MenuItem as='a' href='/tentang-kami'>
                   Tentang Indoteknik
                 </MenuItem>
-                <MenuItem as='a' href='/my/pembayaran-tempo'>
+                <MenuItem as='a' href='/pembayaran-tempo'>
                   Pembayaran Tempo
                 </MenuItem>
               </MenuList>
@@ -370,7 +370,11 @@ const NavbarDesktop = () => {
               )}
               {auth && (
                 <>
-                  <div href='/' className='navbar-user-dropdown-button' aria-label='User'>
+                  <div
+                    href='/'
+                    className='navbar-user-dropdown-button'
+                    aria-label='User'
+                  >
                     <span>Halo, {auth?.name}</span>
                     <div className='ml-auto'>
                       <ChevronDownIcon className='w-6' />
-- 
cgit v1.2.3

