Skip to content

Commit

Permalink
Merge pull request #91 from game-node-app/dev
Browse files Browse the repository at this point in the history
- fixed pagination loading problem in review comments
  • Loading branch information
Lamarcke authored May 27, 2024
2 parents 13705cd + a227b5d commit 758aad9
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 758aad9

Please sign in to comment.