Skip to content

Commit

Permalink
Merge pull request #299 from Lukasdotcom/world-cup-points
Browse files Browse the repository at this point in the history
Fixes bug with no points calculated in World Cup
  • Loading branch information
Lukasdotcom authored Nov 20, 2022
2 parents f90116e + aa8c621 commit ee3a355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/data/WorldCup2022.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default async function Main(): Promise<dataGetter> {
value: e.cost,
position: ["", "gk", "def", "mid", "att"][e.position] as position,
forecast,
total_points: e.stats.total_points ? e.stats.total_points : 0,
average_points: e.stats.average_points ? e.stats.average_points : 0,
total_points: e.stats.totalPoints ? e.stats.totalPoints : 0,
average_points: e.stats.avgPoints ? e.stats.avgPoints : 0,
last_match: 0,
locked: e.locked === 1,
exists: e.status !== "eliminated",
Expand Down

0 comments on commit ee3a355

Please sign in to comment.