smaller history

This commit is contained in:
lubiana 2025-07-12 19:28:15 +02:00
parent 1b67c213a4
commit d2879ae308
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -133,7 +133,7 @@ function App() {
if (allScratched) {
setHistory(h => [
{ tier: card.tier?.name ?? '', winnings: card.fields.reduce((sum, f) => sum + (f.won || 0), 0), winningNumbers: card.winningNumbers, fields: card.fields.map(f => f.value) },
...h.slice(0, 9)
...h.slice(0, 4)
]);
}
}, [card]);