From 7dd2b66958fbe63c1fa68a9c3fb5eab7ee389342 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 4 Feb 2025 17:02:17 +0700
Subject: <iman> munculin company profile

---
 src/pages/my/profile.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/pages/my/profile.jsx')

diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 54e9024a..859b6960 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -98,7 +98,7 @@ export default function Profile() {
                 )} */}
             <PersonalProfile />
             <Divider />
-            {auth?.parentId && <CompanyProfile />}
+            {(auth?.parentId || auth?.company) && <CompanyProfile />}
           </AppLayout>
         </MobileView>
 
@@ -136,7 +136,7 @@ export default function Profile() {
                     )} */}
                 <PersonalProfile />
                 <Divider />
-                {auth?.parentId && <CompanyProfile />}
+                {(auth?.parentId || auth?.company) && <CompanyProfile />}
               </div>
             </div>
           </BasicLayout>
-- 
cgit v1.2.3

