mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
remove spinner on click, on cancel and on error
This commit is contained in:
parent
2d1507863b
commit
026889b43e
1 changed files with 7 additions and 0 deletions
|
@ -53,8 +53,15 @@ class CheckoutActionHandler {
|
|||
return {
|
||||
createOrder,
|
||||
onApprove:onApprove(this, this.errorHandler, this.spinner),
|
||||
onClick: () => {
|
||||
spinner.unblock();
|
||||
},
|
||||
onCancel: () => {
|
||||
spinner.unblock();
|
||||
},
|
||||
onError: (error) => {
|
||||
this.errorHandler.genericError();
|
||||
spinner.unblock();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue