Skip to content
Snippets Groups Projects
Commit 060ef590 authored by Christos's avatar Christos
Browse files

Merge branch 'fix-duplicate-comment' into 'master'

Fix duplicate comment

See merge request wax/wax-prosemirror!164
parents 4bd5a638 a1b3ad52
No related branches found
No related tags found
1 merge request!164Fix duplicate comment
......@@ -68,7 +68,7 @@ const CommentBox = props => {
onClickBox(commentId);
};
// if (!active && (!commentData || commentData.length === 0)) return null;
if (!active && (!commentData || commentData.length === 0)) return null;
return (
<Wrapper active={active} className={className} onClick={onClickWrapper}>
......@@ -87,14 +87,6 @@ const CommentBox = props => {
onClickPost={onClickPost}
/>
)}
{!active && commentData.length === 0 && (
<StyledReply
onTextAreaBlur={onTextAreaBlur}
isNewComment={commentData.length === 0}
onClickPost={onClickPost}
/>
)}
</Wrapper>
);
};
......
......@@ -70,6 +70,7 @@ const CommentReply = props => {
const onBlur = content => {
onTextAreaBlur(content, isNewComment);
setCommentValue('');
};
return (
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment