Skip to content

Commit

Permalink
Fix formik custom-validators example
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdan committed Nov 6, 2019
1 parent ec4dc69 commit 76e0b81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/formik/js/custom-validators/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const App = () => (
fonk-min-number-validator)
</span>
<Formik
initialValues={{ firstname: '', lastName: '', age: '' }}
initialValues={{ firstName: '', lastName: '', age: '' }}
validate={values => formValidation.validateForm(values)}
onSubmit={(values, { setSubmitting }) => {
setTimeout(() => {
Expand All @@ -27,10 +27,10 @@ const App = () => (
>
{({ isSubmitting }) => (
<Form>
<Field name="firstname" placeholder="Firstname" />
<ErrorMessage name="firstname" component="div" />
<Field name="lastname" placeholder="Lastname" />
<ErrorMessage name="lastname" component="div" />
<Field name="firstName" placeholder="Firstname" />
<ErrorMessage name="firstName" component="div" />
<Field name="lastName" placeholder="Lastname" />
<ErrorMessage name="lastName" component="div" />
<Field name="age" placeholder="Age" />
<ErrorMessage name="age" component="div" />
<button type="submit" disabled={isSubmitting}>
Expand Down

0 comments on commit 76e0b81

Please sign in to comment.