mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #572 from woocommerce/PCP-623-errors-in-the-checkout-page-when
Use `hasOwnProperty` instead of `length` for checking if property exist
This commit is contained in:
commit
1cd64cff13
1 changed files with 2 additions and 1 deletions
|
@ -218,7 +218,8 @@ class CreditCardRenderer {
|
|||
}).catch(err => {
|
||||
this.spinner.unblock();
|
||||
this.errorHandler.clear();
|
||||
if (err.details.length > 0) {
|
||||
|
||||
if (err.details) {
|
||||
this.errorHandler.message(err.details.map(d => `${d.issue} ${d.description}`).join('<br/>'), true);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue