Skip to content

Commit

Permalink
Merge pull request #1827 from gettakaro/fix/playercount
Browse files Browse the repository at this point in the history
bugfix(web-main): players/users with role showing incorrect amount
  • Loading branch information
emielvanseveren authored Dec 8, 2024
2 parents 5ee1723 + 2901603 commit 11f8400
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const PlayerCount: FC<{ roleId: string }> = ({ roleId }) => {
return 'unknown';
}

return data.data.length;
return data.meta.total;
};

const UserCount: FC<{ roleId: string }> = ({ roleId }) => {
Expand All @@ -164,5 +164,5 @@ const UserCount: FC<{ roleId: string }> = ({ roleId }) => {
return 'unknown';
}

return data.data.length;
return data.meta.total;
};

0 comments on commit 11f8400

Please sign in to comment.