Skip to content

Commit 1cb6f7f

Browse files
committed
fix: check on passwords values
1 parent e5f2e6e commit 1cb6f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Register.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Register: React.FC = () => {
1717
const registerUser = async (event: any) => {
1818
event.preventDefault();
1919

20-
if (event.target.password !== event.target.passwordConfirmed){
20+
if (event.target.password.value !== event.target.passwordConfirmed.value){
2121
// @ts-ignore
2222
setMessage("Passwords doesn't match" );
2323
// @ts-ignore

0 commit comments

Comments
 (0)