summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-02-13 16:27:27 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-02-13 16:27:27 +0700
commitae239956c4e50ad9e449aa5b7481db013c5ea223 (patch)
treeeb871c0ad494f2a6270923f2fce36c855a3daba8
parent0abd15f6f59ba443c231585822b64db4c1e5ee1a (diff)
<iman> add disable daftar tempo button when loading
-rw-r--r--src/lib/pengajuan-tempo/component/PengajuanTempo.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
index 9a554e42..c577aa41 100644
--- a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
+++ b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
@@ -173,7 +173,7 @@ const PengajuanTempo = () => {
}
return data; // Jika bukan object atau array, kembalikan nilai aslinya
};
- const payment = auth.parentId ? auth.parentId : auth.partnerId
+ const payment = auth?.parentId ? auth?.parentId : auth?.partnerId;
try {
const dataPaymentTerm = await odooApi(
'GET',
@@ -648,7 +648,7 @@ const PengajuanTempo = () => {
<Button
colorScheme='red'
w={`${isMobile ? 'full' : '36'}`}
- isDisabled={!isCheckedTNC}
+ isDisabled={!isCheckedTNC || isLoading}
onClick={handleDaftarTempo}
>
Daftar Tempo {<ChevronRightIcon className='w-5' />}