diff --git a/apps/frontend/libs/hooks/usePagination.ts b/apps/frontend/libs/hooks/usePagination.ts index fc7c412b6..88410ef08 100644 --- a/apps/frontend/libs/hooks/usePagination.ts +++ b/apps/frontend/libs/hooks/usePagination.ts @@ -119,8 +119,7 @@ export const usePagination = ( }, slot: { prev: - ((next && slot.current > 0) || (!next && full)) && - firstData !== undefined + ((next && slot.current > 0) || (!next && full)) && firstData ? `${baseQuery}&cursor=${firstData.id}&take=${-take}` : '', next: