Skip to content

Commit

Permalink
Fix error component subscription prop
Browse files Browse the repository at this point in the history
  • Loading branch information
erikras committed Mar 15, 2021
1 parent 92cd23e commit b3c79b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wizard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const onSubmit = async values => {
const Error = ({ name }) => (
<Field
name={name}
subscribe={{ touched: true, error: true }}
subscription={{ touched: true, error: true }}
render={({ meta: { touched, error } }) =>
touched && error ? <span>{error}</span> : null
}
Expand Down

0 comments on commit b3c79b8

Please sign in to comment.