mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
unblock UI when error on hosted fields caught
This commit is contained in:
parent
ca7ca20a54
commit
33146ca354
1 changed files with 4 additions and 1 deletions
|
@ -115,6 +115,9 @@ class CreditCardRenderer {
|
|||
payload.orderID = payload.orderId;
|
||||
this.spinner.unblock();
|
||||
return contextConfig.onApprove(payload);
|
||||
}).catch(() => {
|
||||
this.spinner.unblock();
|
||||
this.errorHandler.genericError()
|
||||
});
|
||||
} else {
|
||||
this.spinner.unblock();
|
||||
|
@ -147,4 +150,4 @@ class CreditCardRenderer {
|
|||
)
|
||||
}
|
||||
}
|
||||
export default CreditCardRenderer;
|
||||
export default CreditCardRenderer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue