Skip to content
Snippets Groups Projects

Simplify filter conditions - still not working in IOS

Merged Lukas Mauß requested to merge try-to-fix-comment-filter into master
Viewing commit 1808abb1
Show latest version
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -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);