Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/inform/src/lib/services/modal/modal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class NgxModalService {
public open<ActionType extends string = string, DataType = any>(
options: NgxModalOptions<ActionType, DataType>
): Observable<ActionType> {
// Iben: If there still is an active subject running, the modal is still active and we early exit
if (!this.modalClosedSubject?.closed) {
// Iben: If there still is an active subject running, the modal is still active and we early exit.
if (this.modalClosedSubject !== undefined && !this.modalClosedSubject?.closed) {
console.warn(
'NgxInform: An active modal is currently displayed, close the active modal before opening a new one'
);
Expand Down