Skip to content

Commit

Permalink
fix: Improved checks to get rid of travis errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus authored Jul 19, 2021
1 parent e6b3555 commit b52b0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/create-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const createForm = (config) => {
return Promise.resolve()
.then(() => validateFunction(values))
.then((error) => {
if (error == null || !util.getValues(error).length) {
if (util.isNullish(error) || util.getValues(error).length === 0) {
clearErrorsAndSubmit(values);
} else {
errors.set(error);
Expand Down

0 comments on commit b52b0fb

Please sign in to comment.