summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-02-12 09:43:38 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-02-12 09:43:38 +0700
commit6192c7c267827dd41c592900dd55001ee82c78cc (patch)
tree4ed0356e31df1f0e230a8f1a24e8a441205598cc /src/lib/auth/components
parent24700c2f3555da3df4537a28e7145e6bd25dafb0 (diff)
<iman> ubah posisi code
Diffstat (limited to 'src/lib/auth/components')
-rw-r--r--src/lib/auth/components/CompanyProfile.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 47f2f1a1..c6ba1a81 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -59,8 +59,9 @@ const CompanyProfile = () => {
useEffect(() => {
const loadProfile = async () => {
const dataProfile = await addressApi({
- id: auth?.company ? auth.partnerId : auth.parentId,
+ id: auth?.company ? auth.parentId : auth.partnerId,
});
+
setCompany_type(dataProfile?.companyType);
setValue('name', dataProfile?.name);
setValue('industry', dataProfile?.industryId);