Skip to content

Commit

Permalink
Purchases: Fix 'Edit Card Details' failing while checking for input e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
Tug committed Feb 23, 2016
1 parent 42b22df commit 7ec3cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/lib/form-state/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ function isFieldValidating( formState, fieldName ) {
}

function getInvalidFields( formState ) {
return filter( formState, function( field ) {
return isFieldInvalid( formState, field.name );
return filter( formState, function( field, fieldName ) {
return isFieldInvalid( formState, fieldName );
} );
}
function getErrorMessages( formState ) {
Expand Down

0 comments on commit 7ec3cea

Please sign in to comment.