diff --git a/app/db/src/app/app.component.ts b/app/db/src/app/app.component.ts index 3deba5b9..662023ba 100644 --- a/app/db/src/app/app.component.ts +++ b/app/db/src/app/app.component.ts @@ -43,9 +43,11 @@ export class AppComponent extends SubscriberComponent implements AfterViewInit { this.addSubscription( this.error$.subscribe((err) => { - this.snackBar.open(`Oh no! ${err.msg}`, 'Error', { - duration: 4 * 1000, - }); + if (err) { + this.snackBar.open(`Oh no! ${err.msg}`, 'Error', { + duration: 4 * 1000, + }); + } }) );