mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Clear previous message before display current
This commit is contained in:
parent
cdde60e738
commit
f9157ff1ba
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ class CheckoutActionHandler {
|
||||||
.querySelector('ul')
|
.querySelector('ul')
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
errorHandler.clear();
|
||||||
if (data.data.details.length > 0) {
|
if (data.data.details.length > 0) {
|
||||||
errorHandler.message(data.data.details.map(d => `${d.issue} ${d.description}`).join('<br/>'), true);
|
errorHandler.message(data.data.details.map(d => `${d.issue} ${d.description}`).join('<br/>'), true);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue