Skip to content

Commit

Permalink
FX, unnecesary field
Browse files Browse the repository at this point in the history
  • Loading branch information
FredyZarate11 committed Nov 16, 2024
1 parent 48fa44f commit 59b6faa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Components/Login/LoginForm.jsx
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ const LoginForm = () => {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [remember, setRemember] = useState(false);
const { login, loading } = useAuth();
const { login } = useAuth();
const [error, setError] = useState("");

const goToRecovery = () => {
@@ -28,7 +28,8 @@ const LoginForm = () => {
try {
const response = await login(email, password, remember, captchaToken);
if (response.status !== 200) {
setError(response.data.error);
console.log("Error during login:", response);
setError(response.error);
return;
}
navigate("/");
@@ -97,6 +98,7 @@ const LoginForm = () => {
type="password"
id="password"
placeholder="**********"
maxLength={50}
className={[
styles.inputField,
"inter-bold",

0 comments on commit 59b6faa

Please sign in to comment.