diff --git a/apps/dashboard/src/lib/features/community/pages/community-question.svelte b/apps/dashboard/src/lib/features/community/pages/community-question.svelte
index 8975edbb..43201ecc 100644
--- a/apps/dashboard/src/lib/features/community/pages/community-question.svelte
+++ b/apps/dashboard/src/lib/features/community/pages/community-question.svelte
@@ -223,35 +223,37 @@
{/if}
-
+
{pluralize($t('community.answers'), communityApi.question?.comments.length ?? 0, true)}
-
- {#each communityApi.question?.comments as commentItem (commentItem.id)}
-
{
- if (voted.comment[commentItem.id]) return;
+ {#if !!communityApi.question?.comments?.length}
+
+ {#each communityApi.question?.comments as commentItem (commentItem.id)}
+ {
+ if (voted.comment[commentItem.id]) return;
- voted.comment[commentItem.id] = true;
+ voted.comment[commentItem.id] = true;
- communityApi.upvotePost({
- id: commentItem.id,
- isQuestion: false
- });
- }}
- onDelete={() => {
- console.log('deleting commentItem', commentItem);
- communityApi.deleteCommentState.shouldDelete = true;
- communityApi.deleteCommentState.commentId = commentItem.id;
- }}
- />
- {/each}
-
+ communityApi.upvotePost({
+ id: commentItem.id,
+ isQuestion: false
+ });
+ }}
+ onDelete={() => {
+ console.log('deleting commentItem', commentItem);
+ communityApi.deleteCommentState.shouldDelete = true;
+ communityApi.deleteCommentState.commentId = commentItem.id;
+ }}
+ />
+ {/each}
+
+ {/if}