From 69fb6ba913b2af5cb36abe4c17f27e3d77eb4b84 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 24 May 2023 17:23:16 -0400 Subject: [PATCH 1/4] fix wallets --- src/components/Home/FamilyActiveLSlde.jsx | 2 +- src/components/Home/index.jsx | 16 +++----------- src/components/MyWallet/Balance.jsx | 26 +++++++++++++++-------- 3 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/Home/FamilyActiveLSlde.jsx b/src/components/Home/FamilyActiveLSlde.jsx index 90c5cf3..56d4e5c 100644 --- a/src/components/Home/FamilyActiveLSlde.jsx +++ b/src/components/Home/FamilyActiveLSlde.jsx @@ -47,7 +47,7 @@ export default function FamilyActiveLSlde({ className, trending }) {

Current Tasks

-
+
@@ -168,7 +173,7 @@ export default function Login() { {/* for login component */} { - loginCom.user ? ( + loginType.full ? ( //user login compoenent
@@ -219,7 +224,7 @@ export default function Login() {
) : ( - Continue + <>Continue )}
@@ -302,7 +307,7 @@ export default function Login() {
) : ( - Continue + <>Continue )}
From fec464430064881e1f71ba1bcd478232018e50fd Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 24 May 2023 22:34:47 +0100 Subject: [PATCH 3/4] 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) { From 65b58a6e6f050d3d1c1f75c2899f2b32e915a4a1 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 24 May 2023 22:39:12 +0100 Subject: [PATCH 4/4] set login error to false once continue btn is clicked --- src/components/AuthPages/Login/index.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index 5cc6bf5..dd37fb5 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -56,6 +56,7 @@ export default function Login() { // FUNCTION TO HANDLE USER LOGIN const doLogin = ({ target: { name } }) => { setMsgError(""); + setLoginError(false) setLoginLoading(true); let postData; // Post Data for API if (!email || !password) {