Commit d5e9fd07 authored by Lukas Mauß's avatar Lukas Mauß

Merge branch 'try-to-fix-comment-filter' into 'master'

Simplify filter conditions - still not working in IOS

See merge request !373
parents 374bec5b 1808abb1
Pipeline #30030 passed with stages
in 8 minutes and 44 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment