From fec464430064881e1f71ba1bcd478232018e50fd Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 24 May 2023 22:34:47 +0100 Subject: [PATCH] login type bug fixed --- src/components/AuthPages/Login/index.jsx | 7 +++++++ 1 file changed, 7 insertions(+) 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) {