From 02adff782f53c6e587f6e6846210f6d7a409b516 Mon Sep 17 00:00:00 2001 From: Kenpachi2 Date: Sat, 11 Nov 2023 07:23:23 -0800 Subject: [PATCH] set error message to popup for incorrect username or password --- src/Pages/Login.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pages/Login.jsx b/src/Pages/Login.jsx index 9497d04..3df0c44 100644 --- a/src/Pages/Login.jsx +++ b/src/Pages/Login.jsx @@ -55,7 +55,7 @@ const Login = () => { throw new Error("Authentication failed"); } } catch (error) { - setErrors(``); + setErrors(`Incorrect Username or Password`); setIsLoading(false); console.log(error); } @@ -65,7 +65,7 @@ const Login = () => { return (
handleSubmit(e)}>

Sign In

- {errors &&

{errors}

} + {errors &&
{errors}
}