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/lib/auth/components/Menu.jsx | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

(limited to 'src/lib/auth/components/Menu.jsx')

diff --git a/src/lib/auth/components/Menu.jsx b/src/lib/auth/components/Menu.jsx
index 466b793e..82a4de81 100644
--- a/src/lib/auth/components/Menu.jsx
+++ b/src/lib/auth/components/Menu.jsx
@@ -62,19 +62,20 @@ const Menu = () => {
           <p>Invoice & Faktur Pajak</p>
         </div>
       </LinkItem>
-      {(atuh?.partnerTempo.toLowerCase().includes('tempo') ||
-        atuh.tempoProgres == 'review') && (
-        <LinkItem href='/my/tempo' active={routeStartWith('/my/tempo')}>
-          <div className='flex gap-x-3 items-center'>
-            <ImageNext
-              src='/images/icon/icon_tempo.svg'
-              width={18}
-              height={20}
-            />
-            <p>Pembayaran Tempo</p>
-          </div>
-        </LinkItem>
-      )}
+      {auth &&
+        (auth?.partnerTempo.toLowerCase().includes('tempo') ||
+          auth.tempoProgres == 'review') && (
+          <LinkItem href='/my/tempo' active={routeStartWith('/my/tempo')}>
+            <div className='flex gap-x-3 items-center'>
+              <ImageNext
+                src='/images/icon/icon_tempo.svg'
+                width={18}
+                height={20}
+              />
+              <p>Pembayaran Tempo</p>
+            </div>
+          </LinkItem>
+        )}
       <LinkItem href='/my/wishlist' active={routeStartWith('/my/wishlist')}>
         <div className='flex gap-x-3 items-center'>
           <ImageNext
-- 
cgit v1.2.3

