Skip to content

Commit

Permalink
fix: load more button appearing even when there is no result to show (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
demetriusfeijoo authored Jun 14, 2024
1 parent 961f93e commit 4a5f914
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ import { State } from '../state/types/State'
import { isCursorPaginatedResult } from '@/core'

export const showCursorPagination = (state: State): boolean =>
isCursorPaginatedResult(state.pageInfo) &&
typeof state.pageInfo.endCursor !== 'undefined'
isCursorPaginatedResult(state.pageInfo) && state.pageInfo.hasNextPage

0 comments on commit 4a5f914

Please sign in to comment.