diff --git a/src/renderer/components/watch-video-comments/watch-video-comments.js b/src/renderer/components/watch-video-comments/watch-video-comments.js index 49101feb..a022da53 100644 --- a/src/renderer/components/watch-video-comments/watch-video-comments.js +++ b/src/renderer/components/watch-video-comments/watch-video-comments.js @@ -274,9 +274,13 @@ export default Vue.extend({ }) if (index !== null) { - this.commentData[index].replies = this.commentData[index].replies.concat(commentData) - this.commentData[index].replyToken = response.continuation - this.commentData[index].showReplies = true + if (this.commentData[index].replies.length === 0 || this.commentData[index].replies[this.commentData[index].replies.length - 1].commentId !== commentData[commentData.length - 1].commentId) { + this.commentData[index].replies = this.commentData[index].replies.concat(commentData) + this.commentData[index].replyToken = response.continuation + this.commentData[index].showReplies = true + } else { + console.log('Don\'t display comments twice') + } } else { if (this.sortingChanged) { this.commentData = []