diff --git a/src/components/all-jobs.tsx b/src/components/all-jobs.tsx index 352bcc1f..02a94447 100644 --- a/src/components/all-jobs.tsx +++ b/src/components/all-jobs.tsx @@ -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 (
{jobs.additional?.jobs.map((job) => {