From a227b5dd4a242344cc938ad4e4cf3cc000e6449a Mon Sep 17 00:00:00 2001 From: Lamarcke Date: Mon, 27 May 2024 01:36:31 -0300 Subject: [PATCH] - --- src/components/comment/view/CommentsListView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/comment/view/CommentsListView.tsx b/src/components/comment/view/CommentsListView.tsx index bb803f1..ece8296 100644 --- a/src/components/comment/view/CommentsListView.tsx +++ b/src/components/comment/view/CommentsListView.tsx @@ -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 ( {commentsQuery.isError && (