diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js index cd38aba1a..57ff7cf49 100644 --- a/client/coral-plugin-commentbox/CommentBox.js +++ b/client/coral-plugin-commentbox/CommentBox.js @@ -90,12 +90,12 @@ export class CommentForm extends React.Component { saveComment({body}); } render() { - const {maxCharCount, styles, saveCommentEnabled, buttonClass} = this.props; + const {maxCharCount, styles, saveCommentEnabled, buttonClass, charCountEnable} = this.props; const body = this.state.body; const length = body.length; const isNotValidLength = (length) => !length || (maxCharCount && length > maxCharCount); - const disablePostComment = isNotValidLength(length) || ! saveCommentEnabled({body}); + const disablePostComment = (charCountEnable && isNotValidLength(length)) || ! saveCommentEnabled({body}); return