diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts index 708cbb68f474b96e923a512e4f76079ed1565751..39db2a14e9e3211844ed6d6d0cbbeccb4d9fbb9a 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -256,13 +256,13 @@ export class CommentListComponent implements OnInit { this.filteredComments = this.comments.filter(c => { switch (type) { case this.correct: - return (c.correct) ? true : false; + return c.correct; case this.favorite: - return (c.favorite) ? true : false; + return c.favorite; case this.read: - return (c.read) ? true : false; + return c.read; case this.unread: - return (!c.read) ? true : false; + return !c.read; } }); this.sortComments(this.currentSort);