From 77f9843ad5072583cb1797d7ecf5ac80394bad3f Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 2 Dec 2024 09:31:44 +0700
Subject: <iman> pengajuan tempo

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 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 83bf4a66..b2abe80f 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -13,7 +13,7 @@ const NavbarUserDropdown = () => {
       router.push('/login');
     });
   };
-
+  console.log('atuh', atuh);
   return (
     <div className='navbar-user-dropdown-wrapper'>
       <div className='navbar-user-dropdown'>
@@ -22,7 +22,10 @@ const NavbarUserDropdown = () => {
         <Link href='/my/transactions'>Daftar Transaksi</Link>
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
-        <Link href='/my/tempo'>Pembayaran Tempo</Link>
+        {(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

