diff --git a/web/components/pagination.tsx b/web/components/pagination.tsx index 968e49a8..a585985d 100644 --- a/web/components/pagination.tsx +++ b/web/components/pagination.tsx @@ -7,6 +7,8 @@ export function Pagination(props: { }) { const { page, itemsPerPage, totalItems, setPage, scrollToTop } = props + const maxPage = Math.ceil(totalItems / itemsPerPage) - 1 + return (