forked from M3-Academy/desafio-react-e-typescript
Entrega do Desafio #2
@ -34,7 +34,6 @@ const Contato = () => {
|
||||
validationSchema={schema}
|
||||
onSubmit={(values: FormArea, actions) => {
|
||||
actions.resetForm();
|
||||
console.log(values);
|
||||
if (
|
||||
values.checkbox === true &&
|
||||
values.cpf !== "" &&
|
||||
@ -44,7 +43,6 @@ const Contato = () => {
|
||||
values.birthDate !== ""
|
||||
) {
|
||||
setIsValidate(true);
|
||||
console.log(isValidate);
|
||||
}
|
||||
}}
|
||||
initialValues={initialValues}
|
||||
|
Loading…
x
Reference in New Issue
Block a user