fix method addComment

This commit is contained in:
igoradamenko
2018-05-19 00:00:28 +03:00
parent 109dccb9e4
commit b43f9cbb23
+4 -2
View File
@@ -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);
}
}