summaryrefslogtreecommitdiff
path: root/src/lib/auth/components
diff options
context:
space:
mode:
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);