From 40f762589601de0fe1d5b06164b2553ebdbf5ecd Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Sat, 11 Jan 2025 09:27:46 +0700
Subject: <iman> update code

---
 src/pages/pengajuan-tempo/index.jsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'src/pages/pengajuan-tempo/index.jsx')

diff --git a/src/pages/pengajuan-tempo/index.jsx b/src/pages/pengajuan-tempo/index.jsx
index d485c721..6987bd29 100644
--- a/src/pages/pengajuan-tempo/index.jsx
+++ b/src/pages/pengajuan-tempo/index.jsx
@@ -46,10 +46,7 @@ export default function TrackingOrder() {
     if (!auth) {
       const nextUrl = encodeURIComponent(router.asPath);
       router.push(`/login?next=${nextUrl}`);
-    } else if (
-      auth.tempoProgres === 'approve' &&
-      tempo?.paymentTerm?.toLowerCase().includes('tempo')
-    ) {
+    } else if (auth.tempoProgres === 'approve' || auth?.partnerTempo) {
       router.push('/pengajuan-tempo/approve');
     } else if (!auth.parentId) {
       router.push('/pengajuan-tempo/switch-account');
-- 
cgit v1.2.3

