summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-02 13:21:25 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-02 13:21:25 +0700
commita32fa70ab3271e94a9c2b9004f872360dcb7d1c5 (patch)
tree9c4f277f4f8b8c57242244d8f855c94da5d8b89b /src
parent082a57a5188c594556ba76ce20182472ca9d0b5e (diff)
<iman> update switch account
Diffstat (limited to 'src')
-rw-r--r--src/lib/auth/components/SwitchAccount.jsx4
-rw-r--r--src/pages/my/profile.jsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/auth/components/SwitchAccount.jsx b/src/lib/auth/components/SwitchAccount.jsx
index 6c1176bf..fd9f04f9 100644
--- a/src/lib/auth/components/SwitchAccount.jsx
+++ b/src/lib/auth/components/SwitchAccount.jsx
@@ -225,7 +225,7 @@ const SwitchAccount = ({ company_type }) => {
</div>
<div className='px-4 mb-4'>
- {auth?.company && !(company_type === 'nonpkp') && (
+ {!auth?.company && company_type === 'nonpkp' && (
<>
<div className='mb-4'>
<p className='text-black font-bold mb-2'>
@@ -253,7 +253,7 @@ const SwitchAccount = ({ company_type }) => {
<Radio colorScheme='red' value='PKP'>
PKP
</Radio>
- {!(company_type === 'nonpkp') && (
+ {!auth?.company && company_type === 'nonpkp' && (
<Radio colorScheme='red' value='Non-PKP' className='ml-4'>
Non-PKP
</Radio>
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index f44a44f3..eaf3341c 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -85,7 +85,7 @@ export default function Profile() {
)}
{isChecked && (
<div>
- <SwitchAccount />
+ <SwitchAccount company_type='nonpkp' />
<Divider />
</div>
)}
@@ -122,7 +122,7 @@ export default function Profile() {
)}
{isChecked && (
<div>
- <SwitchAccount />
+ <SwitchAccount company_type='nonpkp' />
<Divider />
</div>
)}