diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-07 15:56:56 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-07 15:56:56 +0700 |
| commit | 21999682d2d6193d1033015c4e45f436a958f643 (patch) | |
| tree | 15fc7f46e5d0a0047fac09e9141f9838757ee9d7 /src | |
| parent | 72a2c17094eca3d08c1a42c528f869befdb6131e (diff) | |
<iman> update
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/my/tempo/index.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
