feat : remove log in IB
This commit is contained in:
@@ -35,7 +35,7 @@ export default function Login() {
|
||||
const [mobile, setMobile] = useState("");
|
||||
|
||||
async function handleSendOtp(mobile?: string) {
|
||||
console.log("hi mobile", mobile);
|
||||
// console.log("hi mobile", mobile);
|
||||
if (!mobile) {
|
||||
notifications.show({
|
||||
title: 'Error',
|
||||
@@ -45,7 +45,7 @@ export default function Login() {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
console.log(CIF);
|
||||
// console.log(CIF);
|
||||
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
|
||||
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: '7890544527' });
|
||||
notifications.show({
|
||||
@@ -186,7 +186,7 @@ export default function Login() {
|
||||
});
|
||||
|
||||
const data = await response.json();
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
|
||||
// 1️⃣ OTP Required
|
||||
if (data.status === "OTP_REQUIRED" && response.status === 202) {
|
||||
|
||||
Reference in New Issue
Block a user