Skip to content

Commit

Permalink
chore: use shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
eunnbi committed Jan 11, 2025
1 parent ec855ff commit 64cc748
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/frontend/libs/hooks/usePagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ export const usePagination = <T extends Item>(
},
slot: {
prev:
((next && slot.current > 0) || (!next && full)) &&
firstData !== undefined
((next && slot.current > 0) || (!next && full)) && firstData
? `${baseQuery}&cursor=${firstData.id}&take=${-take}`
: '',
next:
Expand Down

0 comments on commit 64cc748

Please sign in to comment.