From 1808abb187b4122de57d3c40fc9c3acc0c5b7c24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Wed, 7 Aug 2019 17:32:29 +0200
Subject: [PATCH] Simplify filter conditions - still not working in IOS

---
 .../shared/comment-list/comment-list.component.ts         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 708cbb68f..39db2a14e 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);
-- 
GitLab