mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Just use err.details
This commit is contained in:
parent
b7a9ccec4e
commit
c6070e6567
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ class CreditCardRenderer {
|
|||
this.spinner.unblock();
|
||||
this.errorHandler.clear();
|
||||
|
||||
if (err.hasOwnProperty('details')) {
|
||||
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