mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Alert instead of console error when response is not successful
This commit is contained in:
parent
4b85831f52
commit
8cffaf9826
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ const ppcp_onboarding = {
|
|||
return res.json();
|
||||
}).then((data)=>{
|
||||
if (!data.success) {
|
||||
console.error(data);
|
||||
alert('Could not update signup buttons: ' + data);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue