Skip to content

Commit

Permalink
fix: pagination typebug
Browse files Browse the repository at this point in the history
  • Loading branch information
jasspreetbawa committed Aug 23, 2024
1 parent 9113a79 commit 1b926af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/all-jobs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const AllJobs = async ({ searchParams }: PaginatorProps) => {
const totalPages =
Math.ceil((jobs.additional?.totalJobs || 0) / JOBS_PER_PAGE) ||
DEFAULT_PAGE;
const currentPage = searchParams.page || DEFAULT_PAGE;
const currentPage = parseInt(searchParams.page || DEFAULT_PAGE);
return (
<div className="bg-background py-4 grid gap-3">
{jobs.additional?.jobs.map((job) => {
Expand Down

0 comments on commit 1b926af

Please sign in to comment.