diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-11 09:27:46 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-11 09:27:46 +0700 |
| commit | 40f762589601de0fe1d5b06164b2553ebdbf5ecd (patch) | |
| tree | b5d341a472ef37a00e5a87e0877e9874b0ca5490 /src/pages/pengajuan-tempo/index.jsx | |
| parent | fedaceac3e41741c198c94fd20917c9572fa7ec1 (diff) | |
<iman> update code
Diffstat (limited to 'src/pages/pengajuan-tempo/index.jsx')
| -rw-r--r-- | src/pages/pengajuan-tempo/index.jsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pages/pengajuan-tempo/index.jsx b/src/pages/pengajuan-tempo/index.jsx index d485c721..6987bd29 100644 --- a/src/pages/pengajuan-tempo/index.jsx +++ b/src/pages/pengajuan-tempo/index.jsx @@ -46,10 +46,7 @@ export default function TrackingOrder() { if (!auth) { const nextUrl = encodeURIComponent(router.asPath); router.push(`/login?next=${nextUrl}`); - } else if ( - auth.tempoProgres === 'approve' && - tempo?.paymentTerm?.toLowerCase().includes('tempo') - ) { + } else if (auth.tempoProgres === 'approve' || auth?.partnerTempo) { router.push('/pengajuan-tempo/approve'); } else if (!auth.parentId) { router.push('/pengajuan-tempo/switch-account'); |
