reverse child comments

This commit is contained in:
jessop 2020-07-27 16:07:12 -04:00 committed by Sean Yesmunt
parent d76ece04bc
commit 142e695150

View file

@ -40,6 +40,7 @@ function CommentList(props: Props) {
sortedArray.push(parentComment);
childComments
.reverse()
.filter(childComment => childComment.parent_id === parentComment.comment_id)
.forEach(childComment => {
sortedArray.push(childComment);