summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-02-10 11:00:46 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-02-10 11:00:46 +0700
commit88b1c01453a60a2ce286052f35dc7d7837a79f2e (patch)
tree40b4d680f18a89408a5f782b2606b17555f24982 /src
parent679022cd84b158ae957a54b7f2ada152060d7262 (diff)
<iman> update get data name tempo
Diffstat (limited to 'src')
-rw-r--r--src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx b/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx
index 25a3a7ee..4e99f9f5 100644
--- a/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx
+++ b/src/lib/pengajuan-tempo/component/informasiPerusahaan.jsx
@@ -470,7 +470,7 @@ const InformasiPerusahaan = ({
useEffect(() => {
const loadProfile = async () => {
try {
- const dataProfile = await addressApi({ id: auth.parentId });
+ const dataProfile = await addressApi({ id: auth.parentId ? auth.parentId : auth.partnerId });
if (dataProfile.name) {
updateForm('name', dataProfile.name);
}
@@ -507,7 +507,7 @@ const InformasiPerusahaan = ({
}
};
- if (auth?.parentId) {
+ if (auth?.parentId || auth?.partnerId) {
loadProfile();
}
}, [auth?.parentId]);