fix: fixed captcha issue for response

This commit is contained in:
sundasnoreen12
2025-07-17 19:13:59 +05:00
parent 7db3f4a21a
commit 86f050eaf2

View File

@@ -117,7 +117,7 @@ const CommentEditor = ({
};
await dispatch(editComment(id, payload));
} else {
await dispatch(addComment(values.comment, threadId, parentId, enableInContextSidebar, ...(shouldRequireCaptcha ? values.recaptchaToken : '')));
await dispatch(addComment(values.comment, threadId, parentId, enableInContextSidebar, shouldRequireCaptcha ? values.recaptchaToken : ''));
}
/* istanbul ignore if: TinyMCE is mocked so this cannot be easily tested */
if (editorRef.current) {