mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 16:24:33 +08:00
Merge pull request #401 from woocommerce/PCP-424-reopened-error-messages-are-not-cleared
Clear error messages on approve
This commit is contained in:
commit
7109f969f6
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
const onApprove = (context, errorHandler, spinner) => {
|
||||
return (data, actions) => {
|
||||
spinner.block();
|
||||
errorHandler.clear();
|
||||
|
||||
return fetch(context.config.ajax.approve_order.endpoint, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue