Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamarcke committed May 27, 2024
1 parent b8a1d94 commit a227b5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/comment/view/CommentsListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const CommentsListView = ({
commentsQuery.data != undefined &&
commentsQuery.data.pagination.hasNextPage;

const shouldShowPagination = offsetAsPage !== 1 || hasNextPage;
const shouldShowPagination =
commentsQuery.data != undefined && (offsetAsPage !== 1 || hasNextPage);
return (
<Stack className={"w-full h-full"}>
{commentsQuery.isError && (
Expand Down

0 comments on commit a227b5d

Please sign in to comment.