Skip to content

Commit

Permalink
Move brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarDamkjaer committed May 10, 2021
1 parent 80b2b67 commit 954960b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/browser/modules/GuideCarousel/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ export function paginationHelper(
if (outOfBounds) return []

const baseNumbers = range(0, itemCount)

// no split
if (itemCount <= 7) return baseNumbers
if (itemCount <= 7) {
return baseNumbers
}

// early splits
if (selectedIndex < 4) {
Expand Down

0 comments on commit 954960b

Please sign in to comment.