From 801f5661346aea4be37de7935137cd493e5cc421 Mon Sep 17 00:00:00 2001 From: Joaovitor045 Date: Wed, 18 Dec 2024 10:22:24 -0300 Subject: [PATCH] bugfix: The passwords match. --- src/pages/SignUp/SignUpForm/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/SignUp/SignUpForm/index.tsx b/src/pages/SignUp/SignUpForm/index.tsx index 3a8ce94..69e4b5f 100644 --- a/src/pages/SignUp/SignUpForm/index.tsx +++ b/src/pages/SignUp/SignUpForm/index.tsx @@ -24,8 +24,12 @@ function SignUpForm() { register, handleSubmit, formState: { errors, isValid }, + watch, } = useForm(); + + + const { signUp, isAuthenticated } = useAuth(); const onSubmit = handleSubmit(async (data: FormValues) => { @@ -100,7 +104,10 @@ function SignUpForm() { + value === watch('password') || "As senhas não correspondem." + })} />