mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(EditLabel): don't show the edit label if comment.original.content is identical to comment.content
This commit is contained in:
@@ -40,7 +40,7 @@ const EditLabel = ({ commentCid, className }) => {
|
||||
return (
|
||||
<>
|
||||
<OriginalCommentModal isOpen={isOriginalCommentModalOpen} closeModal={() => setIsOriginalCommentModalOpen(false)} comment={comment} />
|
||||
{comment.edit && (
|
||||
{comment.edit && comment.original?.content !== comment?.content ? (
|
||||
<>
|
||||
<br />
|
||||
<span className={className}>
|
||||
@@ -51,7 +51,7 @@ const EditLabel = ({ commentCid, className }) => {
|
||||
)
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
) : null}
|
||||
{(editedCommentState === 'pending' || editedCommentState === 'failed') && conditionsString ? (
|
||||
<>
|
||||
<br />
|
||||
|
||||
Reference in New Issue
Block a user