Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 15, 2024
1 parent 7b0a9af commit c8822f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/pages/cl/ko/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,11 @@ function CLKO({ season, pots: initialPots }: Props) {
}
}, [isFastDraw, currentPotNum])

const selectedTeams = possiblePairings
? possiblePairings.map(i => pots[0][i])
: []

return (
<PageRoot>
<TablesContainer>
<PotsContainer
selectedTeams={selectedTeams}
selectedTeams={potsToDisplay[0]}
initialPots={initialPots}
pots={pots}
currentPotNum={currentPotNum}
Expand Down
6 changes: 1 addition & 5 deletions src/pages/el/ko/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,11 @@ function ELKO({ season, pots: initialPots }: Props) {
}
}, [isFastDraw, currentPotNum])

const selectedTeams = possiblePairings
? possiblePairings.map(i => pots[0][i])
: []

return (
<PageRoot>
<TablesContainer>
<PotsContainer
selectedTeams={selectedTeams}
selectedTeams={potsToDisplay[0]}
initialPots={initialPots}
pots={pots}
currentPotNum={currentPotNum}
Expand Down

0 comments on commit c8822f9

Please sign in to comment.