Skip to content

Commit

Permalink
fix: delete log
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalsofiia1 committed Nov 10, 2024
1 parent bc4df89 commit 2c13d3c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down Expand Up @@ -181,7 +181,6 @@ export class NewsListComponent implements OnInit, OnDestroy {
}

if (!this.hasNext || this.loading) {
console.log(this.hasNext, this.loading);
return;
}

Expand Down

0 comments on commit 2c13d3c

Please sign in to comment.