summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-23 14:17:52 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-23 14:17:52 +0700
commitf404f9801db1f234ae03ec9c9542ba5d4aa1bf46 (patch)
tree4269cf258ad49859d5c45ce44074cd127910a109 /src
parent4d9d8bd328675ce0a99359d7558553634c995f38 (diff)
<iman> delete console.log
Diffstat (limited to 'src')
-rw-r--r--src/lib/auth/api/switchAccountProgresApi.js2
-rw-r--r--src/lib/auth/components/SwitchAccount.jsx4
-rw-r--r--src/pages/my/profile.jsx2
3 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/auth/api/switchAccountProgresApi.js b/src/lib/auth/api/switchAccountProgresApi.js
index ba1c35fa..6289a5dd 100644
--- a/src/lib/auth/api/switchAccountProgresApi.js
+++ b/src/lib/auth/api/switchAccountProgresApi.js
@@ -3,12 +3,10 @@ import { getAuth } from '@/core/utils/auth';
const switchAccountProgresApi = async () => {
const auth = getAuth();
- console.log('auth', auth);
const switchAccount = await odooApi(
'GET',
`/api/v1/user/${auth.partnerId}/switch_progres`
);
- console.log('switchAccount', switchAccount);
return switchAccount;
};
diff --git a/src/lib/auth/components/SwitchAccount.jsx b/src/lib/auth/components/SwitchAccount.jsx
index bc9dee36..e737ef6a 100644
--- a/src/lib/auth/components/SwitchAccount.jsx
+++ b/src/lib/auth/components/SwitchAccount.jsx
@@ -37,7 +37,6 @@ const SwitchAccount = () => {
const [notValid, setNotValid] = useState(false);
const { form, isCheckedTNC, isValidCaptcha, errors, validate, updateForm } =
useRegisterStore();
- console.log('form', form);
const isFormValid = useMemo(() => Object.keys(errors).length === 0, [errors]);
useEffect(() => {
const loadProfile = async () => {
@@ -98,7 +97,6 @@ const SwitchAccount = () => {
setIsPKP(false);
}
};
- console.log('auth', auth);
const onSubmitHandler = async (values) => {
// let data = { ...form, id: `${auth.partnerId}` };
const data = form;
@@ -111,9 +109,7 @@ const SwitchAccount = () => {
setNotValid(false);
}
// if (!values.password) delete data.password;
- console.log('data', data);
const isUpdated = await switchAccountApi({ data });
- console.log('isupdate', isUpdated);
if (isUpdated?.switch === 'Pending') {
// setAuth(isUpdated.user);
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx
index 13cab06d..0eeec6cf 100644
--- a/src/pages/my/profile.jsx
+++ b/src/pages/my/profile.jsx
@@ -28,11 +28,9 @@ export default function Profile() {
setIsAprove(progresSwitchAccount.status);
setUbahAkun(progresSwitchAccount.status === 'unknown');
}
- console.log('progresSwitchAccount', progresSwitchAccount);
};
loadPromo();
}, []);
- console.log('isAprove', isAprove);
return (
<IsAuth>
<MobileView>