diff --git a/src/app/member-dashboard/member-dashboard.component.ts b/src/app/member-dashboard/member-dashboard.component.ts index 87f4f42f..33e8603d 100644 --- a/src/app/member-dashboard/member-dashboard.component.ts +++ b/src/app/member-dashboard/member-dashboard.component.ts @@ -129,7 +129,7 @@ export class MemberDashboardComponent implements OnInit, OnDestroy { } } - @HostListener('window:popstate', ['$event']) + @HostListener('window:popstate') dismissModal() { if (this.modalService.hasOpenModals()) { this.modalService.dismissAll(); diff --git a/src/app/member-explore/member-explore.component.ts b/src/app/member-explore/member-explore.component.ts index 0d508824..0c6e1377 100644 --- a/src/app/member-explore/member-explore.component.ts +++ b/src/app/member-explore/member-explore.component.ts @@ -123,7 +123,7 @@ export class MemberExploreComponent implements OnInit, OnDestroy { } } - @HostListener('window:popstate', ['$event']) + @HostListener('window:popstate') dismissModal() { if (this.modalService.hasOpenModals()) { this.modalService.dismissAll(); diff --git a/src/app/member-support/member-support.component.ts b/src/app/member-support/member-support.component.ts index d403fb55..1de9cd6a 100644 --- a/src/app/member-support/member-support.component.ts +++ b/src/app/member-support/member-support.component.ts @@ -95,7 +95,7 @@ export class MemberSupportComponent implements OnInit, OnDestroy { } } - @HostListener('window:popstate', ['$event']) + @HostListener('window:popstate') dismissModal() { if (this.modalService.hasOpenModals()) { this.modalService.dismissAll(); diff --git a/src/app/scanner/scanner.component.ts b/src/app/scanner/scanner.component.ts index e16bd5f2..e21523d8 100644 --- a/src/app/scanner/scanner.component.ts +++ b/src/app/scanner/scanner.component.ts @@ -140,7 +140,7 @@ export class ScannerComponent implements OnInit, OnDestroy { } } - @HostListener('window:popstate', ['$event']) + @HostListener('window:popstate') dismissModal() { this.controlModalState(false); this.modalService.dismissAll();