diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-02-21 14:34:06 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-02-21 14:34:06 +0700 |
| commit | df5d4208209d0d4a92ecf1183dfd8a83ec35383f (patch) | |
| tree | 0ccec19e15817ff6ea85bfc3cd656f0a91ffcc89 /src | |
| parent | e09a6b29c97a43adea1ea5dcc0d5caa3a0eeb1c6 (diff) | |
<iman> update code /my/tempo
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/my/tempo/index.jsx | 13 |
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]); |
