diff --git a/web/app/common/store.js b/web/app/common/store.js index f61d2ba5..aedc0868 100644 --- a/web/app/common/store.js +++ b/web/app/common/store.js @@ -31,10 +31,12 @@ class Store { } addComment(comment) { + const newComment = { comment }; + if (comment.pid) { - this.pasteReply(comment); + this.pasteReply(newComment); } else { - this.pasteComment(comment); + this.pasteComment(newComment); } }