add rolling winrate chart

This commit is contained in:
2025-05-21 22:04:25 +02:00
parent bcc1312857
commit 0f1386f3bf

View File

@@ -51,7 +51,7 @@ export function WinrateTrendChart({ games }: { games: SelectGames[] }) {
</div>
<Slider
value={[gamesWindow]}
onValueChange={(value) => setGamesWindow(value[0])}
onValueChange={(value) => setGamesWindow(value[0] ?? 0)}
min={5}
max={Math.min(100, games.length)}
step={1}