diff --git a/integration-libs/opf/base/root/services/opf-resource-loader.service.spec.ts b/integration-libs/opf/base/root/services/opf-resource-loader.service.spec.ts index 3c6f551e768..fb230644040 100644 --- a/integration-libs/opf/base/root/services/opf-resource-loader.service.spec.ts +++ b/integration-libs/opf/base/root/services/opf-resource-loader.service.spec.ts @@ -161,7 +161,10 @@ describe('OpfResourceLoaderService', () => { } ); - opfResourceLoaderService.loadResources([mockScriptResource]); + opfResourceLoaderService + .loadResources([mockScriptResource]) + .then(() => {}) + .catch(() => {}); expect(opfResourceLoaderService['loadStyles']).not.toHaveBeenCalled(); expect(opfResourceLoaderService['loadScript']).toHaveBeenCalled(); @@ -207,7 +210,10 @@ describe('OpfResourceLoaderService', () => { } ); - opfResourceLoaderService.loadResources([], [mockStylesResources]); + opfResourceLoaderService + .loadResources([], [mockStylesResources]) + .then(() => {}) + .catch(() => {}); expect(opfResourceLoaderService['loadScript']).not.toHaveBeenCalled(); diff --git a/integration-libs/opf/base/root/services/opf-resource-loader.service.ts b/integration-libs/opf/base/root/services/opf-resource-loader.service.ts index 716db738335..aa7e9a32b8d 100644 --- a/integration-libs/opf/base/root/services/opf-resource-loader.service.ts +++ b/integration-libs/opf/base/root/services/opf-resource-loader.service.ts @@ -185,8 +185,6 @@ export class OpfResourceLoaderService { } ); - return Promise.all(resourcesPromises) - .then(() => {}) - .catch(() => {}); + return Promise.all(resourcesPromises).then(() => {}); } } diff --git a/integration-libs/opf/checkout/components/opf-checkout-payment-wrapper/opf-checkout-payment-wrapper.service.ts b/integration-libs/opf/checkout/components/opf-checkout-payment-wrapper/opf-checkout-payment-wrapper.service.ts index ddb530cbf25..18c26f1f8ae 100644 --- a/integration-libs/opf/checkout/components/opf-checkout-payment-wrapper/opf-checkout-payment-wrapper.service.ts +++ b/integration-libs/opf/checkout/components/opf-checkout-payment-wrapper/opf-checkout-payment-wrapper.service.ts @@ -180,6 +180,9 @@ export class OpfCheckoutPaymentWrapperService { if (html) { this.executeScriptFromHtml(html); } + }) + .catch(() => { + this.handleGeneralPaymentError().pipe(take(1)).subscribe(); }); return; }