fix: remove comment count if it's reply button (#590)

This commit is contained in:
Innei
2023-05-31 09:58:30 +03:00
committed by GitHub
parent ecc4453af3
commit 827c0e1f63
+5 -3
View File
@@ -122,9 +122,11 @@ export const CommentItem: React.FC<{
onClick={() => setReplyOpen(!replyOpen)}
>
{t(`${replyOpen ? "Cancel " : ""}Reply`)}
<span className="ml-1">
{(comment as any)?.fromNotes?.count || 0}
</span>
{!replyOpen && (
<span className="ml-1">
{(comment as any)?.fromNotes?.count || 0}
</span>
)}
</Button>
)}
{comment.characterId === account?.characterId && (