We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33906e1 commit 28e8a84Copy full SHA for 28e8a84
src/pages/stats.astro
@@ -21,6 +21,7 @@ function mapFactionWinrate(race: StatsByTimeEntry) {
21
const pickrate = round(race.aggregated.pick_rate!)
22
const labels: string[] = []
23
const data: number[] = []
24
+ if(!race.history.at(-1)?.matches_count) race.history.pop()
25
for (const entry of race.history) {
26
labels.push(new Date(entry.date!).toLocaleDateString("en-US", { month: "short", day: "numeric" }))
27
data.push(round(entry.win_rate!))
0 commit comments