diff --git a/frontend/src/hooks/query/useMyPostList.ts b/frontend/src/hooks/query/useMyPostList.ts index 7b126b1a..83a8f152 100644 --- a/frontend/src/hooks/query/useMyPostList.ts +++ b/frontend/src/hooks/query/useMyPostList.ts @@ -35,7 +35,6 @@ export const useMyPostList = (isRunner: boolean, reviewStatus?: ReviewStatus) => initialPageParam: 0, getNextPageParam: (nextPage) => { - if (!nextPage || !nextPage.pageInfo) return undefined; if (nextPage.pageInfo.isLast) return undefined; return nextPage.pageInfo.nextCursor; }, diff --git a/frontend/src/hooks/query/useOtherSupporterPost.ts b/frontend/src/hooks/query/useOtherSupporterPost.ts index 08e81c34..72602b8d 100644 --- a/frontend/src/hooks/query/useOtherSupporterPost.ts +++ b/frontend/src/hooks/query/useOtherSupporterPost.ts @@ -19,7 +19,6 @@ export const useOtherSupporterPost = (userId: number) => { initialPageParam: 0, getNextPageParam: (nextPage) => { - if (!nextPage || !nextPage.pageInfo) return undefined; if (nextPage.pageInfo.isLast) return undefined; return nextPage.pageInfo.nextCursor; }, diff --git a/frontend/src/hooks/query/useRunnerPostList.ts b/frontend/src/hooks/query/useRunnerPostList.ts index e2c1c78f..716e8866 100644 --- a/frontend/src/hooks/query/useRunnerPostList.ts +++ b/frontend/src/hooks/query/useRunnerPostList.ts @@ -27,7 +27,6 @@ export const useRunnerPostList = (reviewStatus: ReviewStatus | null, tagName?: s initialPageParam: 0, getNextPageParam: (nextPage) => { - if (!nextPage || !nextPage.pageInfo) return undefined; if (nextPage.pageInfo.isLast) return undefined; return nextPage.pageInfo.nextCursor; },