Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 19, 2024
1 parent c0872c4 commit 4e48b0b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pages/cl/gs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ function CLGS({ season, pots: initialPots, isFirstPotShortDraw }: Props) {

useEffect(() => {
if (isNoGroupBallPick && possibleGroupsShuffled?.length) {
const index = isDrawShort
? Math.min(...possibleGroupsShuffled)
: sample(possibleGroupsShuffled)!

const index = sample(possibleGroupsShuffled)!
handleGroupBallPick(index)
}
}, [isNoGroupBallPick, possibleGroupsShuffled])
Expand Down

0 comments on commit 4e48b0b

Please sign in to comment.