diff --git a/src/app/main/component/eco-news/components/news-list/news-list.component.ts b/src/app/main/component/eco-news/components/news-list/news-list.component.ts index b1111b3b0d..81f86fda66 100644 --- a/src/app/main/component/eco-news/components/news-list/news-list.component.ts +++ b/src/app/main/component/eco-news/components/news-list/news-list.component.ts @@ -122,7 +122,7 @@ export class NewsListComponent implements OnInit, OnDestroy { } cancelSearch(): void { - if (this.searchNewsControl.value.trim() === '') { + if (!this.searchNewsControl.value.trim()) { this.isSearchVisible = false; } else { this.searchNewsControl.setValue(''); @@ -181,7 +181,6 @@ export class NewsListComponent implements OnInit, OnDestroy { } if (!this.hasNext || this.loading) { - console.log(this.hasNext, this.loading); return; }