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:
parent
91d3864126
commit
a10c244e7c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue