From 5187f40005dd2e391ae601c11886b539dffe4dd7 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 4 Feb 2025 15:19:14 +0700
Subject: <iman> update mobile

---
 src/pages/my/profile.jsx | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

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

diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 77c108cb..54e9024a 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -71,18 +71,19 @@ export default function Profile() {
       <IsAuth>
         <MobileView>
           <AppLayout title='Akun Saya'>
-            {!auth?.parentId && !ubahAkun && (
-              <div className='text-sm p-4 flex items-center'>
-                <Checkbox
-                  borderColor='gray.600'
-                  colorScheme='red'
-                  size='lg'
-                  isChecked={isChecked}
-                  onChange={handleChange}
-                />
-                <p className='ml-2'>Ubah ke akun bisnis</p>
-              </div>
-            )}
+            {auth?.company ||
+              (!ubahAkun && (
+                <div className='text-sm p-4 flex items-center'>
+                  <Checkbox
+                    borderColor='gray.600'
+                    colorScheme='red'
+                    size='lg'
+                    isChecked={isChecked}
+                    onChange={handleChange}
+                  />
+                  <p className='ml-2'>Ubah ke akun bisnis</p>
+                </div>
+              ))}
             {isChecked && (
               <div>
                 <SwitchAccount company_type='nonpkp' />
-- 
cgit v1.2.3

