smaller history
This commit is contained in:
parent
1b67c213a4
commit
d2879ae308
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue