Skip to content

Commit

Permalink
refactor: remove extra deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-deriv committed Oct 16, 2024
1 parent 1f90726 commit 16407c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/Pagination/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Pagination = ({

useEffect(() => {
onClickPagination?.({ currentPage, totalPageCount });
}, [currentPage, totalPageCount]);
}, [currentPage]);

const goToNextPage = () => setCurrentPage((page) => page + 1);

Expand Down

0 comments on commit 16407c2

Please sign in to comment.