Comparing version 0.10.6 to 0.10.7
@@ -106,4 +106,4 @@ 'use strict'; | ||
var errorKeys = (0, _lodash.keys)(_this.errors); | ||
var errors = (0, _lodash.find)(errorKeys, function (field) { | ||
_this.errors[field]; | ||
var errors = findIndex(errorKeys, function (field) { | ||
return _this.errors[field]; | ||
}); | ||
@@ -110,0 +110,0 @@ return !errors; |
{ | ||
"name": "formact", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"description": "A React Set of Form Components with Context", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -119,5 +119,3 @@ // @flow | ||
const errorKeys = keys(this.errors) | ||
const errors = find(errorKeys, field => { | ||
this.errors[field] | ||
}) | ||
const errors = findIndex(errorKeys, field => this.errors[field]) | ||
return !errors | ||
@@ -124,0 +122,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
217118
1351