diff options
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]); |
