From cb58889bc19bf60ba24f6a38804c990b0f0083a1 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 30 Jan 2025 17:06:25 +0700
Subject: <iman> update pengajuan tempo

---
 src/pages/pengajuan-tempo/index.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(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 6987bd29..5ddd3e18 100644
--- a/src/pages/pengajuan-tempo/index.jsx
+++ b/src/pages/pengajuan-tempo/index.jsx
@@ -48,7 +48,7 @@ export default function TrackingOrder() {
       router.push(`/login?next=${nextUrl}`);
     } else if (auth.tempoProgres === 'approve' || auth?.partnerTempo) {
       router.push('/pengajuan-tempo/approve');
-    } else if (!auth.parentId) {
+    } else if (!auth.parentId && !auth.company) {
       router.push('/pengajuan-tempo/switch-account');
     } else if (auth.tempoProgres === 'review' && !tempo?.paymentTerm) {
       router.push('/pengajuan-tempo/review');
-- 
cgit v1.2.3

