Alert instead of console error when response is not successful

This commit is contained in:
dinamiko 2022-05-31 15:11:56 +02:00
parent 4b85831f52
commit 8cffaf9826

View file

@ -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;
}