Feat : Fetching daily limit is working

This commit is contained in:
2025-10-29 12:40:38 +05:30
parent 8bf603544f
commit ded4a2edc9
8 changed files with 195 additions and 52 deletions

View File

@@ -45,8 +45,8 @@ export default function Login() {
}
try {
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: "7890544527" });
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: "7890544527" });
notifications.show({
color: 'orange',
title: 'OTP Required',
@@ -67,8 +67,8 @@ export default function Login() {
async function handleVerifyOtp(mobile?: string) {
try {
if (mobile) {
await verifyLoginOtp(otp, mobile);
// await verifyLoginOtp(otp, '7890544527');
// await verifyLoginOtp(otp, mobile);
await verifyLoginOtp(otp, '7890544527');
return true;
}
}
@@ -296,10 +296,11 @@ export default function Login() {
message: "Internal Server Error, Please try again later",
autoClose: 5000,
});
} finally {
// Ensure we always stop loader if still active
setIsLogging(false);
}
}
// finally {
// // Ensure we always stop loader if still active
// setIsLogging(false);
// }
}