Skip to content

Commit

Permalink
style: fix eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Almouro committed Aug 12, 2018
1 parent e1fe376 commit 3462fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makeReactNativeField.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const makeReactNativeField = compose(
onBlur: () => {
// validate onBlur only while not submitting
// this prevents validating twice in succession when clicking 'done' on keyboard - first onSubmitEditing, then onBlur
setFieldTouched(name, true, isSubmitting ? false : true);
setFieldTouched(name, true, !isSubmitting);
if (props.onBlur) props.onBlur();
}
}))
Expand Down

0 comments on commit 3462fb7

Please sign in to comment.