Skip to content

Commit

Permalink
fix(frontend): pagination calculation (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lil-Ran committed Aug 25, 2024
1 parent 8815a83 commit 6191f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/pages/admin/games/[id]/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const GameTeamReview: FC = () => {
<Pagination
value={activePage}
onChange={setPage}
total={(filteredParticipations?.length ?? 0) / PART_NUM_PER_PAGE + 1}
total={Math.ceil((filteredParticipations?.length ?? 1) / PART_NUM_PER_PAGE)}
styles={{
root: {
display: 'flex',
Expand Down

0 comments on commit 6191f46

Please sign in to comment.