diff --git a/src/lib/button-manager.ts b/src/lib/button-manager.ts index 2ee5e19..105eef7 100644 --- a/src/lib/button-manager.ts +++ b/src/lib/button-manager.ts @@ -244,7 +244,11 @@ export class ButtonManager { if (!this.isMounted()) return; if (showButton) { - this.client.prefetchPaymentData(this.createLoadPaymentDataRequest(this.config)); + try { + this.client.prefetchPaymentData(this.createLoadPaymentDataRequest(this.config)); + } catch (err) { + console.log('Error with prefetch', err); + } // remove hidden className this.setClassName(