Skip to content

Commit

Permalink
fixes total person count
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrazak2001 committed Dec 19, 2024
1 parent ed56a68 commit 9db9b87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export const useRecordShowPagePagination = (
const totalCount = Math.max(1, totalCountBefore, totalCountAfter);

const viewNameWithCount = rankFoundInView
? `${rankInView + 1} of ${totalCount} in ${objectLabel}`
: `${objectLabel} (${totalCount})`;
? `${rankInView + 1} of ${totalCount + 1} in ${objectLabel}`
: `${objectLabel} (${totalCount + 1})`;

return {
viewName: viewNameWithCount,
Expand Down

0 comments on commit 9db9b87

Please sign in to comment.