summaryrefslogtreecommitdiff
path: root/src/lib/pengajuan-tempo/component/FinishTempo.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pengajuan-tempo/component/FinishTempo.jsx')
-rw-r--r--src/lib/pengajuan-tempo/component/FinishTempo.jsx14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/pengajuan-tempo/component/FinishTempo.jsx b/src/lib/pengajuan-tempo/component/FinishTempo.jsx
index bfcd0909..aacb9ef3 100644
--- a/src/lib/pengajuan-tempo/component/FinishTempo.jsx
+++ b/src/lib/pengajuan-tempo/component/FinishTempo.jsx
@@ -95,14 +95,20 @@ const FinishTempo = ({ query }) => {
'Proses pengajuan tempo anda sudah berhasil terdaftar di indoteknik.com. Nikmati pembelian anda di website indoteknik dengan menggunakan pembayaran tempo'}
</div>
<Link
- href={query?.status == 'switch-account' ? `/my/profile` : `/my/tempo/`}
+ href={
+ query?.status === 'switch-account'
+ ? '/my/profile'
+ : query?.status === 'approve'
+ ? '/my/tempo/'
+ : '/'
+ }
className='btn-solid-red rounded-md text-base flex flex-row items-center justify-center'
>
- {query?.status == 'switch-account'
+ {query?.status === 'switch-account'
? 'Ubah Akun'
- : query?.status == 'approve'
+ : query?.status === 'approve'
? 'Lihat Detail Tempo'
- : 'Lihat Status Pendaftaran'}
+ : 'Kembali Ke Beranda'}
<ChevronRightIcon className='w-5' />
</Link>
</div>