Skip to content
Snippets Groups Projects
Commit 1808abb1 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Simplify filter conditions - still not working in IOS

parent a3799293
1 merge request!373Simplify filter conditions - still not working in IOS
Pipeline #29787 passed with stages
in 8 minutes and 18 seconds
This commit is part of merge request !373. Comments created here will be created in the context of that merge request.
......@@ -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);
......
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