diff --git a/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx b/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx index 0d6a55be..dcc5fbd4 100644 --- a/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx +++ b/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx @@ -9,8 +9,15 @@ export default function PaginationLoadMoreButton( props: PaginationLoadMoreButtonProps, ) { const { - query: { hasNextPage, isFetchingNextPage, fetchNextPage }, + query: { data, hasNextPage, isFetchingNextPage, fetchNextPage }, } = props; + + const isOnlyOnePage = data?.pages.length === 1; + + if (isOnlyOnePage && !hasNextPage) { + return null; + } + return (