Skip to content

Commit

Permalink
fix: opf build error (#17694)
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheFlo authored Jul 27, 2023
1 parent 887a4aa commit 01c7d66
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,21 @@ export class OpfGlobalFunctionsService implements OpfGlobalFunctionsFacade {
return window.Opf.payments;
}

protected startLoaderSpinner(vcr: ViewContainerRef) {
protected startLoaderSpinner(
vcr: ViewContainerRef
): void | Observable<ComponentRef<any> | undefined> {
return this.launchDialogService.launch(
LAUNCH_CALLER.PLACE_ORDER_SPINNER,
vcr
);
}

protected stopLoaderSpinner(overlayedSpinner: Observable<ComponentRef<any>>) {
protected stopLoaderSpinner(
overlayedSpinner: void | Observable<ComponentRef<any> | undefined>
): void {
if (!overlayedSpinner) {
return;
}
overlayedSpinner
.subscribe((component) => {
this.launchDialogService.clear(LAUNCH_CALLER.PLACE_ORDER_SPINNER);
Expand Down

0 comments on commit 01c7d66

Please sign in to comment.