login type bug fixed

This commit is contained in:
victorAnumudu
2023-05-24 22:34:47 +01:00
parent 8b99ec1ab8
commit fec4644300
+7
View File
@@ -83,6 +83,13 @@ export default function Login() {
login_mode: 1105,
action: 11025,
};
}else{
setLoginLoading(false);
setMsgError("Invalid Login Type. Consider refreshing the page");
setTimeout(() => {
setMsgError("");
}, Number(process.env.REACT_APP_LOGIN_ERROR_TIMEOUT));
return;
}
userApi.logInUser(postData).then((res) => {
if (res.status != 200 || res.data.internal_return < 0) {