set login error to false once continue btn is clicked

This commit was merged in pull request #100.
This commit is contained in:
victorAnumudu
2023-05-24 22:39:12 +01:00
parent fec4644300
commit 65b58a6e6f
+1
View File
@@ -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) {