From 27233d0e9a45b60ebb03c59ae287f52828ee8b5a Mon Sep 17 00:00:00 2001 From: plebeius Date: Tue, 17 Jun 2025 15:56:00 +0200 Subject: [PATCH] fix(inbox): "full comments" button would count 0 posts incorrectly --- src/components/post/comment-tools/comment-tools.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/post/comment-tools/comment-tools.tsx b/src/components/post/comment-tools/comment-tools.tsx index f7f54b0f..4cf10277 100644 --- a/src/components/post/comment-tools/comment-tools.tsx +++ b/src/components/post/comment-tools/comment-tools.tsx @@ -219,11 +219,11 @@ const SingleReplyTools = ({ const fullCommentsButton = cid ? ( - {t('full_comments')} ({comment?.replyCount || 0}) + {t('full_comments')} {comment?.replyCount ? `(${comment?.replyCount})` : ''} ) : ( - {t('full_comments')} ({comment?.replyCount || 0}) + {t('full_comments')} {comment?.replyCount ? `(${comment?.replyCount})` : ''} );