From c5d15eed779ba6400a9b58b5727bcfd8f4903dca Mon Sep 17 00:00:00 2001 From: David Jay Date: Mon, 7 Nov 2016 16:54:52 -0500 Subject: [PATCH] Fixing bug in reply counting. --- client/coral-plugin-comment-count/CommentCount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-plugin-comment-count/CommentCount.js b/client/coral-plugin-comment-count/CommentCount.js index 6c3b2e5eb..01a5c602b 100644 --- a/client/coral-plugin-comment-count/CommentCount.js +++ b/client/coral-plugin-comment-count/CommentCount.js @@ -10,7 +10,7 @@ const CommentCount = ({items, id}) => { const itemKeys = Object.keys(items) for (var i=0; i < itemKeys.length; i++) { const item = items[itemKeys[i]] - if (item.type === 'comment' && item.children) { + if (item.children) { count += item.children.length } }