fix(loginform): removed the console log that was left by accident

This commit is contained in:
2025-03-23 10:58:49 -05:00
parent 97b9c4db4a
commit 2ae3c8ba59

View File

@@ -54,7 +54,10 @@ const LoginForm = () => {
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({username: value.username, password: value.password}),
body: JSON.stringify({
username: value.username,
password: value.password,
}),
});
const data = await response.json();
@@ -74,7 +77,7 @@ const LoginForm = () => {
toast.error(`${data.message}`);
}
console.log(data);
//console.log(data);
} catch (err) {
toast.error("Invalid credentials");
}
@@ -100,7 +103,11 @@ const LoginForm = () => {
className={errors.username ? "border-red-500" : ""}
aria-invalid={!!errors.username}
/>
{errors.username && <p className="text-red-500 text-sm mt-1">{errors.username.message}</p>}
{errors.username && (
<p className="text-red-500 text-sm mt-1">
{errors.username.message}
</p>
)}
</div>
<div>
<>
@@ -113,7 +120,11 @@ const LoginForm = () => {
className={errors.password ? "border-red-500" : ""}
aria-invalid={!!errors.password}
/>
{errors.password && <p className="text-red-500 text-sm mt-1">{errors.password.message}</p>}
{errors.password && (
<p className="text-red-500 text-sm mt-1">
{errors.password.message}
</p>
)}
</>
</div>
<div className="flex justify-between pt-2">