diff --git a/src/components/common/CommentInput.tsx b/src/components/common/CommentInput.tsx index 8427f6b2..d6d6a397 100644 --- a/src/components/common/CommentInput.tsx +++ b/src/components/common/CommentInput.tsx @@ -41,6 +41,8 @@ export const CommentInput: React.FC<{ }, }) + const inputContent = form.watch("content").trim() + const handleSubmit = form.handleSubmit(async (values) => { if (characterId && noteId) { if (comment) { @@ -122,7 +124,9 @@ export const CommentInput: React.FC<{ type="submit" isLoading={commentPage.isLoading || updateComment.isLoading} isDisabled={ - !!account?.character && form.watch("content").trim().length === 0 + !!account?.character && + (!inputContent || + inputContent === comment?.metadata?.content?.content) } > {t(