Skip to content

Commit

Permalink
Merge pull request #31 from square/deanpapastrat/properly-remove-post…
Browse files Browse the repository at this point in the history
…al-code

Properly set postalCode on SqPaymentForm instance
  • Loading branch information
deanpapastrat authored Jul 24, 2019
2 parents e5c97e4 + ef63a89 commit 524f00a
Show file tree
Hide file tree
Showing 3 changed files with 2,746 additions and 2,021 deletions.
2 changes: 2 additions & 0 deletions addon/components/square-payment-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ export default Component.extend({
elementId: `sq-${this.formId}-credit-card-postal-code-input`,
placeholder: creditCardPostalCodeInputEl.dataset.placeholder
};
} else {
paymentFormConfig.postalCode = false;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"eslint-plugin-ember": "^6.2.0",
"eslint-plugin-node": "^9.0.0",
"loader.js": "^4.7.0",
"qunit-dom": "^0.8.4"
"qunit-dom": "^0.9.0"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
Expand Down
Loading

0 comments on commit 524f00a

Please sign in to comment.