From 7dd2b66958fbe63c1fa68a9c3fb5eab7ee389342 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Tue, 4 Feb 2025 17:02:17 +0700 Subject: munculin company profile --- src/lib/auth/components/CompanyProfile.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/auth') 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); -- cgit v1.2.3 From 6192c7c267827dd41c592900dd55001ee82c78cc Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Wed, 12 Feb 2025 09:43:38 +0700 Subject: ubah posisi code --- src/lib/auth/components/CompanyProfile.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/auth') 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); -- cgit v1.2.3 From 0abd15f6f59ba443c231585822b64db4c1e5ee1a Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Thu, 13 Feb 2025 10:48:24 +0700 Subject: add action button log out --- src/lib/auth/components/Menu.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/auth') diff --git a/src/lib/auth/components/Menu.jsx b/src/lib/auth/components/Menu.jsx index 4682dbab..df33314c 100644 --- a/src/lib/auth/components/Menu.jsx +++ b/src/lib/auth/components/Menu.jsx @@ -197,6 +197,7 @@ const Menu = () => {