From 9a49b8d84761781531cb417731cb9ef802f63541 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 4 Dec 2024 10:59:21 +0700
Subject: <iman> update pengajuan tempo

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

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

diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
index b2abe80f..d19cf11d 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -13,7 +13,6 @@ const NavbarUserDropdown = () => {
       router.push('/login');
     });
   };
-  console.log('atuh', atuh);
   return (
     <div className='navbar-user-dropdown-wrapper'>
       <div className='navbar-user-dropdown'>
@@ -22,10 +21,12 @@ const NavbarUserDropdown = () => {
         <Link href='/my/transactions'>Daftar Transaksi</Link>
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
-        {(atuh?.partnerTempo.toLowerCase().includes('tempo') ||
-          atuh.tempoProgres == 'review') && (
-          <Link href='/my/tempo'>Pembayaran Tempo</Link>
-        )}
+        {atuh &&
+          (atuh.partnerTempo?.toLowerCase().includes('tempo') ||
+            atuh.tempoProgres === 'review') && (
+            <Link href='/my/tempo'>Pembayaran Tempo</Link>
+          )}
+
         <Link href='/my/wishlist'>Wishlist</Link>
         <Link href='/my/address'>Daftar Alamat</Link>
         {!atuh?.external && (
-- 
cgit v1.2.3

