diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b79b78a..8439316 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -21,15 +21,14 @@ export class AppComponent { this.connectionService.monitor().subscribe(isConnected => { this.isConnected = isConnected; if (this.isConnected && this.modalRef) { - this.modalRef.hide() - } - else { + this.modalRef.hide(); + } else { this.modalRef = this.modalService.show(InternetConnectionComponent, { backdrop: false, ignoreBackdropClick: true, class: 'modal-dialog-centered' }); } - }) + }); } }