From 21999682d2d6193d1033015c4e45f436a958f643 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 7 Jan 2025 15:56:56 +0700
Subject: <iman> update

---
 src/pages/my/tempo/index.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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

diff --git a/src/pages/my/tempo/index.jsx b/src/pages/my/tempo/index.jsx
index f52fe960..a1897e51 100644
--- a/src/pages/my/tempo/index.jsx
+++ b/src/pages/my/tempo/index.jsx
@@ -16,7 +16,10 @@ export default function MyTempo() {
     if (!auth) {
       const nextUrl = encodeURIComponent(router.asPath);
       router.push(`/login?next=${nextUrl}`);
-    } else if (auth.tempoProgres === '' || auth.tempoProgres === 'rejected') {
+    } else if (
+      (auth.tempoProgres === '' || auth.tempoProgres === 'rejected') &&
+      !auth.company
+    ) {
       router.push('/pengajuan-tempo');
     } else {
       setIsLoading(false);
-- 
cgit v1.2.3

