Skip to content

Commit

Permalink
[BUG] Pagination Total Num of Pages Fix (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pierce authored Nov 26, 2023
1 parent c0d7a1d commit 8796389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/common/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const Pagination = ({
setResultsPerPage,
getRecords,
}: Props): React.ReactElement => {
const numPages = Math.ceil(numRecords / resultsPerPage);
const numPages = Math.ceil(Math.max(1, numRecords) / resultsPerPage);

const handleNumberInputChange = (
newUserPageNumString: string,
Expand Down

0 comments on commit 8796389

Please sign in to comment.