From bcbf311b952cc5b153b75a92f9840595ddd52c3e Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 22 Sep 2023 14:08:10 +0200 Subject: [PATCH] fix(EditLabel): don't show the edit label if comment.original.content is identical to comment.content --- src/components/EditLabel.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/EditLabel.jsx b/src/components/EditLabel.jsx index 7f901563..86583167 100644 --- a/src/components/EditLabel.jsx +++ b/src/components/EditLabel.jsx @@ -40,7 +40,7 @@ const EditLabel = ({ commentCid, className }) => { return ( <> setIsOriginalCommentModalOpen(false)} comment={comment} /> - {comment.edit && ( + {comment.edit && comment.original?.content !== comment?.content ? ( <>
@@ -51,7 +51,7 @@ const EditLabel = ({ commentCid, className }) => { ) - )} + ) : null} {(editedCommentState === 'pending' || editedCommentState === 'failed') && conditionsString ? ( <>