Fixes undefined variable access

parent e27d7617
Pipeline #23879 failed with stages
in 7 minutes and 43 seconds
......@@ -69,7 +69,7 @@ export class ConfidenceRateComponent {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
......
......@@ -106,7 +106,7 @@ export class LeaderboardComponent implements OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
......
......@@ -111,7 +111,7 @@ export class QuizLobbyComponent implements OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
this.footerBarService.TYPE_REFERENCE = QuizLobbyComponent.TYPE;
......
......@@ -84,7 +84,7 @@ export class QuestionDetailsComponent implements OnInit, OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
......
......@@ -84,7 +84,7 @@ export class QuizResultsComponent implements OnInit, OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
......
......@@ -51,7 +51,7 @@ export class QuizThemeComponent implements OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
}
......
......@@ -59,7 +59,7 @@ export class ReadingConfirmationComponent implements OnInit, OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
......
......@@ -105,7 +105,7 @@ export class VotingComponent implements OnDestroy {
this.ngbModal.dismissAll();
this._serverUnavailableModal = this.ngbModal.open(ServerUnavailableModalComponent);
this._serverUnavailableModal.result.finally(() => this._isServerUnavailableModalOpen = false);
this._serverUnavailableModal.result.finally(() => this._serverUnavailableModal = null);
}));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment