summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
authorIndoteknik . <andrifebriyadiputra@gmail.com>2025-08-12 17:31:31 +0700
committerIndoteknik . <andrifebriyadiputra@gmail.com>2025-08-12 17:31:31 +0700
commitc527fa8fe9772b456a11a52f52c7ee091504d734 (patch)
tree37c6fa112cda3b5959ed07a877b56f08e827fa06 /src/pages
parentdd0c699d8a866b53b962f92f98939ebb527dded0 (diff)
(andri) fix switch account ke bisnis
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/my/profile.jsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 663ff97a..887489e0 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -99,8 +99,7 @@ export default function Profile() {
<IsAuth>
<MobileView>
<AppLayout title="Akun Saya">
- {auth?.company ||
- (!ubahAkun && (
+ {auth?.company || ((isChecked || (!ubahAkun && ubahAkun !== 'pending')) && (
<div className="text-sm p-4 flex items-center">
<Checkbox
borderColor="gray.600"
@@ -137,8 +136,7 @@ export default function Profile() {
<Menu />
</div>
<div className="w-9/12 bg-white border border-gray_r-6 rounded">
- {auth?.company ||
- (!ubahAkun && (
+ {auth?.company || ((isChecked || (!ubahAkun && ubahAkun !== 'pending')) && (
<div className="text-sm p-4 flex items-center">
<Checkbox
borderColor="gray.600"