Skip to content

Commit

Permalink
Merge pull request #3496 from Automattic/fix/edit-credit-card-form
Browse files Browse the repository at this point in the history
Purchases: Fix 'Edit Card Details' form failing while checking for input errors
  • Loading branch information
Tug committed Feb 23, 2016
2 parents df765e2 + 7ec3cea commit b2c952a
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 b2c952a

Please sign in to comment.