Skip to content
Snippets Groups Projects
Commit 0aed9de5 authored by chris's avatar chris
Browse files

workaround for enter creating comment twice

parent 8a2f448b
No related branches found
No related tags found
1 merge request!166Fixes
......@@ -51,6 +51,9 @@ export default ({ comment, top, commentId, recalculateTops }) => {
if (activeComment && commentId === activeComment.attrs.id) active = true;
const onClickPost = content => {
// TODO find out why on enter comment posts twice.
if (last(comment.attrs.conversation).content === content) return;
const { tr } = state;
const obj = {
......
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