0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

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
This commit is contained in:
Rishabh 2022-07-28 00:22:43 +05:30
parent 91d3864126
commit a10c244e7c

View file

@ -14,7 +14,7 @@ const CommentsBoxContent = (props) => {
const {pagination, member, comments, commentsEnabled} = useContext(AppContext);
const commentsElements = comments.slice().reverse().map(comment => <Comment isEditing={isEditing} comment={comment} key={comment.id} updateIsEditing={setIsEditing} />);
const commentsCount = comments.length;
const commentsCount = pagination?.total || 0;
const paidOnly = commentsEnabled === 'paid';
const isPaidMember = member && !!member.paid;