diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index 0897ca7..adfdf56 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -146,11 +146,11 @@ export class InicioComponent implements OnInit { this.sinonimos = res; if (res.length > 0) - this.showPopover(); + this.popoverDirective.show(); else this.popoverDirective.hide(); }) - } else { + } else if (this.popoverDirective) { this.popoverDirective.hide(); } }