summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-02-21 14:34:06 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-02-21 14:34:06 +0700
commitdf5d4208209d0d4a92ecf1183dfd8a83ec35383f (patch)
tree0ccec19e15817ff6ea85bfc3cd656f0a91ffcc89 /src
parente09a6b29c97a43adea1ea5dcc0d5caa3a0eeb1c6 (diff)
<iman> update code /my/tempo
Diffstat (limited to 'src')
-rw-r--r--src/pages/my/tempo/index.jsx13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/pages/my/tempo/index.jsx b/src/pages/my/tempo/index.jsx
index 5fb9deba..0c6fc0fb 100644
--- a/src/pages/my/tempo/index.jsx
+++ b/src/pages/my/tempo/index.jsx
@@ -16,14 +16,11 @@ export default function MyTempo() {
if (!auth) {
const nextUrl = encodeURIComponent(router.asPath);
router.push(`/login?next=${nextUrl}`);
- }
- // else if (
- // (auth.tempoProgres === '' || auth.tempoProgres === 'rejected') &&
- // !auth.company
- // ) {
- // router.push('/pengajuan-tempo');
- // }
- else {
+ } else {
+ if ( !auth.partnerTempo && (!auth.partnerTempo || auth.tempoProgres === 'review') ) {
+ router.push('/pengajuan-tempo');
+ }
+
setIsLoading(false);
}
}, [auth]);