Fixing bug in reply counting.

This commit is contained in:
David Jay
2016-11-07 16:54:52 -05:00
parent 3bdd1893e0
commit c5d15eed77
@@ -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
}
}