summaryrefslogtreecommitdiff
path: root/src/pages
diff options
context:
space:
mode:
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"