We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b3555 commit b52b0fbCopy full SHA for b52b0fb
lib/create-form.js
@@ -115,7 +115,7 @@ export const createForm = (config) => {
115
return Promise.resolve()
116
.then(() => validateFunction(values))
117
.then((error) => {
118
- if (error == null || !util.getValues(error).length) {
+ if (util.isNullish(error) || util.getValues(error).length === 0) {
119
clearErrorsAndSubmit(values);
120
} else {
121
errors.set(error);
0 commit comments