Comparing version 0.10.7 to 0.10.8
@@ -106,6 +106,6 @@ 'use strict'; | ||
var errorKeys = (0, _lodash.keys)(_this.errors); | ||
var errors = findIndex(errorKeys, function (field) { | ||
var errors = (0, _lodash.findIndex)(errorKeys, function (field) { | ||
return _this.errors[field]; | ||
}); | ||
return !errors; | ||
return errors < 0; | ||
}, _this.onSubmit = function (e) { | ||
@@ -112,0 +112,0 @@ var valid = _this.isValid(); |
{ | ||
"name": "formact", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"description": "A React Set of Form Components with Context", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -5,3 +5,3 @@ // @flow | ||
import PropTypes from 'prop-types' | ||
import { keys, find } from 'lodash' | ||
import { keys, findIndex } from 'lodash' | ||
@@ -121,3 +121,3 @@ import type { | ||
const errors = findIndex(errorKeys, field => this.errors[field]) | ||
return !errors | ||
return errors < 0 | ||
} | ||
@@ -124,0 +124,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217150