diff --git a/web/src/components/CommentSection.astro b/web/src/components/CommentSection.astro index e27233b..bddf8db 100644 --- a/web/src/components/CommentSection.astro +++ b/web/src/components/CommentSection.astro @@ -239,7 +239,7 @@ function makeReplySchema(comment: CommentWithRepliesPopulated): Comment { ])} /> - Show unmoderated ({pendingCommentsCount}) + Show unmoderated ({pendingCommentsCount.toLocaleString()}) ) @@ -249,15 +249,31 @@ function makeReplySchema(comment: CommentWithRepliesPopulated): Comment {
{ - comments.map((comment) => ( - - )) + comments.length > 0 ? ( + comments.map((comment) => ( + + )) + ) : ( +
+ {pendingCommentsCount > 0 ? ( + + No approved comments, but there are + + {pendingCommentsCount.toLocaleString()} unmoderated comments + + + + ) : ( + 'No comments yet' + )} +
+ ) }