fix(inbox): "full comments" button would count 0 posts incorrectly

This commit is contained in:
plebeius
2025-06-17 15:56:00 +02:00
parent 089ec95e45
commit 27233d0e9a

View File

@@ -219,11 +219,11 @@ const SingleReplyTools = ({
const fullCommentsButton = cid ? (
<Link to={cid ? `/p/${subplebbitAddress}/c/${postCid}` : `/profile/${index}`}>
{t('full_comments')} ({comment?.replyCount || 0})
{t('full_comments')} {comment?.replyCount ? `(${comment?.replyCount})` : ''}
</Link>
) : (
<span>
{t('full_comments')} ({comment?.replyCount || 0})
{t('full_comments')} {comment?.replyCount ? `(${comment?.replyCount})` : ''}
</span>
);