Skip to content

Commit 2cdd503

Browse files
change the password error properly
1 parent 3152432 commit 2cdd503

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/register/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const RegisterPage = () => {
3636
}
3737

3838
if (!password || password.length < 8) {
39-
setError("Password is invalid");
40-
toast.error("Password is invalid");
39+
setError("Password must be 8 characters long");
40+
toast.error("Password must be 8 characters long");
4141
return;
4242
}
4343

0 commit comments

Comments
 (0)