From 2c13d3c31efc148cc19e56ee93dc3213e4d14dec Mon Sep 17 00:00:00 2001 From: sofiia koval Date: Sun, 10 Nov 2024 20:39:12 +0200 Subject: [PATCH] fix: delete log --- .../eco-news/components/news-list/news-list.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }