Skip to content

Commit

Permalink
removendo codigo inutilizado
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandes-natanael committed Dec 6, 2023
1 parent abcc23e commit 535fd5b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/components/forms/ForgottenPasswordForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ export default function ForgottenPasswordForm(){
} = useForm({resolver: yupResolver(forgottenPasswordSchema), mode: "onChange"})

const onSubmit = async (data) => {
toast.success("Email enviado com sucesso!", {
autoClose: 5000,

});
navigate('/');

const response = await forgottenPassword(data);
if(response.type === 'error') {
toast.error(response.error)
Expand Down

0 comments on commit 535fd5b

Please sign in to comment.