From a10c244e7cbca0d51b10b8f75771272857ba65e1 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Thu, 28 Jul 2022 00:22:43 +0530 Subject: [PATCH] Updated member count to use total across pagination refs https://github.com/TryGhost/Team/issues/1695 - member count was using total comments of current page than all comments across --- apps/comments-ui/src/components/CommentsBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/comments-ui/src/components/CommentsBox.js b/apps/comments-ui/src/components/CommentsBox.js index 5e09d7035d..5f3726dd1c 100644 --- a/apps/comments-ui/src/components/CommentsBox.js +++ b/apps/comments-ui/src/components/CommentsBox.js @@ -14,7 +14,7 @@ const CommentsBoxContent = (props) => { const {pagination, member, comments, commentsEnabled} = useContext(AppContext); const commentsElements = comments.slice().reverse().map(comment => ); - const commentsCount = comments.length; + const commentsCount = pagination?.total || 0; const paidOnly = commentsEnabled === 'paid'; const isPaidMember = member && !!member.paid;