mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Display multiple details
This commit is contained in:
parent
84e3bcdb5c
commit
238fa31cf7
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class CheckoutActionHandler {
|
|||
);
|
||||
} else {
|
||||
if (data.data.details.length > 0) {
|
||||
errorHandler.message(data.data.details[0].issue + ' ' + data.data.details[0].description, true);
|
||||
errorHandler.message(data.data.details.map(d => `${d.issue} ${d.description}`).join('<br/>'), true);
|
||||
} else {
|
||||
errorHandler.message(data.data.message, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue