diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 81213a5..5cc6bf5 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -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) {