From 762d7dad3420df8fa0fdaf3ca4484f37b2d5c5a7 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 18 Jun 2025 11:15:22 +0700
Subject: <hafid> fix pengajuan tempo

---
 src/lib/pengajuan-tempo/component/FinishTempo.jsx | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'src/lib/pengajuan-tempo/component/FinishTempo.jsx')

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>
-- 
cgit v1.2.3

