From 4745baa6981423d9a7c2311370ad7c853c33de7b Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 2 Jan 2025 10:43:05 +0700
Subject: <iman> update bug

---
 src/core/components/elements/Navbar/NavbarUserDropdown.jsx | 5 +++--
 1 file changed, 3 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 d19cf11d..83407bfd 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -22,8 +22,9 @@ const NavbarUserDropdown = () => {
         <Link href='/my/shipments'>Daftar Pengiriman</Link>
         <Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
         {atuh &&
-          (atuh.partnerTempo?.toLowerCase().includes('tempo') ||
-            atuh.tempoProgres === 'review') && (
+          (atuh.partnerTempo
+            ? atuh.partnerTempo?.toLowerCase().includes('tempo')
+            : '' || atuh.tempoProgres === 'review') && (
             <Link href='/my/tempo'>Pembayaran Tempo</Link>
           )}
 
-- 
cgit v1.2.3

