chore: lint
This commit is contained in:
@@ -43,10 +43,10 @@ const Login = () => {
|
||||
const submitForm = async (e: any) => {
|
||||
e.preventDefault();
|
||||
|
||||
if (!email.includes("@")) {
|
||||
notify("error", "Please enter a valid email.");
|
||||
return;
|
||||
}
|
||||
if (!email.includes("@")) {
|
||||
notify("error", "Please enter a valid email.");
|
||||
return;
|
||||
}
|
||||
|
||||
setLoading(true);
|
||||
try {
|
||||
@@ -61,11 +61,11 @@ if (!email.includes("@")) {
|
||||
navigate("/");
|
||||
} catch (err: any) {
|
||||
const errorResponse = err.response?.data;
|
||||
|
||||
const errorMessage = errorResponse?.code
|
||||
? t(errorResponse.code)
|
||||
: t('login.error.generic');
|
||||
|
||||
|
||||
const errorMessage = errorResponse?.code
|
||||
? t(errorResponse.code)
|
||||
: t('login.error.generic');
|
||||
|
||||
notify("error", errorMessage);
|
||||
setLoading(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user