From 827c0e1f63e968f047ec19c3b4767fdb2ec55bec Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 31 May 2023 14:58:30 +0800 Subject: [PATCH] fix: remove comment count if it's reply button (#590) --- src/components/common/CommentItem.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/common/CommentItem.tsx b/src/components/common/CommentItem.tsx index 82edf5d4..66946943 100644 --- a/src/components/common/CommentItem.tsx +++ b/src/components/common/CommentItem.tsx @@ -122,9 +122,11 @@ export const CommentItem: React.FC<{ onClick={() => setReplyOpen(!replyOpen)} > {t(`${replyOpen ? "Cancel " : ""}Reply`)} - - {(comment as any)?.fromNotes?.count || 0} - + {!replyOpen && ( + + {(comment as any)?.fromNotes?.count || 0} + + )} )} {comment.characterId === account?.characterId && (