unblock UI when error on hosted fields caught

This commit is contained in:
Kirill Braslavsky 2021-02-25 13:39:44 +02:00
parent ca7ca20a54
commit 33146ca354

View file

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