diff --git a/src/app/components/input/pagination.tsx b/src/app/components/input/pagination.tsx index 1d9f48b..e9dabcc 100644 --- a/src/app/components/input/pagination.tsx +++ b/src/app/components/input/pagination.tsx @@ -52,7 +52,7 @@ export default function Pagination({ mobilePagination, page, totalPages, onPageC const pageNumbers = []; const maxPagesToShow = mobilePagination ? 3 : 4; let startPage = Math.max(1, currentPage - Math.floor(maxPagesToShow / 2)); - let endPage = Math.min(totalPages, startPage + maxPagesToShow - 1); + const endPage = Math.min(totalPages, startPage + maxPagesToShow - 1); if (endPage - startPage < maxPagesToShow - 1) { startPage = Math.max(1, endPage - maxPagesToShow + 1);