From b1bdfbb9f780a1a1305e02c4b9c338b98c7a4556 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Fri, 15 Aug 2025 13:58:59 +0700 Subject: (andri) fix switch account --- src/pages/my/profile.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/pages') diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx index 887489e0..b65a5e4d 100644 --- a/src/pages/my/profile.jsx +++ b/src/pages/my/profile.jsx @@ -18,6 +18,7 @@ import { useRouter } from 'next/router'; export default function Profile() { const auth = useAuth(); + console.log('auth', auth); const [isChecked, setIsChecked] = useState(false); const [ubahAkun, setUbahAkun] = useState(false); const [isAprove, setIsAprove] = useState(); @@ -111,9 +112,9 @@ export default function Profile() {

Ubah ke akun bisnis

))} - {isChecked && ( + {isChecked && ubahAkun !== 'pending' && (
- +
)} @@ -148,9 +149,9 @@ export default function Profile() {

Ubah ke akun bisnis

))} - {isChecked && ( + {isChecked && ubahAkun !== 'pending' && (
- +
)} -- cgit v1.2.3