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 96ba333323c06c461709a1805f051810eada05e7..f3cc9319966c7c9d9f4074882a678bde6f26076e 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -73,7 +73,7 @@ export class CommentListComponent implements OnInit { getCommentsCreator(): Comment[] { let commentThreshold = -10; - if (this.room.extensions) { + if (this.room.extensions && this.room.extensions['comments']) { commentThreshold = this.room.extensions['comments'].commentThreshold; if (this.hideCommentsList) { return this.filteredComments.filter( x => x.score >= commentThreshold );