Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jul 3, 2024
1 parent ca8235a commit 5a5e346
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pages/cl/ls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ interface Props {
}

function LeagueStage({ pots: initialPots }: Props) {
const numMatchdays = 8;
const numMatchdays = initialPots.length * 2;

const numMatches = useMemo(() => {
const numTeams = initialPots.flat().length;
return (numTeams * numMatchdays) / 2;
}, [initialPots, numMatchdays]);

const [, setPopup] = usePopup();

Expand Down Expand Up @@ -143,7 +148,9 @@ function LeagueStage({ pots: initialPots }: Props) {
pairings={pairings}
/>
<div>
<div>Drawn matches: {pairings.length}/144</div>
<div>
Drawn matches: {pairings.length}/{numMatches}
</div>
{isFixturesDone && !isScheduleDone && (
<div>
The schedule is being generated. This will take a while. Do not
Expand Down

0 comments on commit 5a5e346

Please sign in to comment.