summaryrefslogtreecommitdiff
path: root/src/lib/auth/components/CompanyProfile.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/auth/components/CompanyProfile.jsx')
-rw-r--r--src/lib/auth/components/CompanyProfile.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 410d6a23..47f2f1a1 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -59,7 +59,7 @@ const CompanyProfile = () => {
useEffect(() => {
const loadProfile = async () => {
const dataProfile = await addressApi({
- id: auth.parentId ? auth.parentId : auth.parent_id,
+ id: auth?.company ? auth.partnerId : auth.parentId,
});
setCompany_type(dataProfile?.companyType);
setValue('name', dataProfile?.name);