summaryrefslogtreecommitdiff
path: root/src/lib/pengajuan-tempo/component
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-12-23 13:39:47 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-12-23 13:39:47 +0700
commitdaa0b872601789815513508d48a14cbd8e1f6518 (patch)
tree6b26200286ff664c7d80d2623f7dcfc96a492cac /src/lib/pengajuan-tempo/component
parentdd8a56ad12d054e121965c41bcb077158690b208 (diff)
<iman> update pengajuan tempo
Diffstat (limited to 'src/lib/pengajuan-tempo/component')
-rw-r--r--src/lib/pengajuan-tempo/component/PengajuanTempo.jsx1
-rw-r--r--src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
index 22227624..dbf2c606 100644
--- a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
+++ b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
@@ -550,7 +550,6 @@ const PengajuanTempo = () => {
// if (isLoading && !bigData) {
// return;
// }
- console.log('bigData', bigData);
return (
<>
<div className='container flex flex-col items-center '>
diff --git a/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx b/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx
index 4bc04a3f..fc0f1c28 100644
--- a/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx
+++ b/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx
@@ -95,8 +95,6 @@ const InformasiPerusahaan = ({
useEffect(() => {
if (watchCity) {
- updateForm('city', `${watchCity}`);
- validate();
const loadDistricts = async () => {
let dataDistricts = await districtApi({ cityId: watchCity });
dataDistricts = dataDistricts.map((district) => ({
@@ -105,9 +103,13 @@ const InformasiPerusahaan = ({
}));
setDistricts(dataDistricts);
};
+ if (form.city !== `${watchCity}`) {
+ updateForm('city', `${watchCity}`);
+ }
+ validate();
loadDistricts();
}
- }, [watchCity, setValue]);
+ }, [watchCity]);
const watchDistrict = watch('district');
useEffect(() => {