Skip to content

Commit

Permalink
Fix disabled pagination arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbouchenoire committed Dec 31, 2021
1 parent d7687bc commit af03d89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/site/src/components/controls/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export function Pagination({
}, [currentPage, pages, truncation])
const isFirstPage = useMemo(() => currentPage === 0, [currentPage])
const isLastPage = useMemo(
() => currentPage === truncatedPages.length - 1,
[currentPage, truncatedPages]
() => currentPage === pages.length - 1,
[currentPage, pages]
)

return (
Expand Down

0 comments on commit af03d89

Please sign in to comment.