Fixed validator for songhistory

This commit is contained in:
Clément Le Bihan
2023-12-05 12:26:52 +01:00
parent 2c9ec4a7d3
commit f590b573fb
3 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -360,12 +360,12 @@ const PlayView = ({ songId, route }: RouteProps<PlayViewProps>) => {
[
[
'lastScore',
songHistory.data?.best ?? 0,
songHistory.data?.history.at(0)?.score ?? 0,
() => <Clock color={statColor} />,
] as const,
[
'bestScore',
songHistory.data?.history.at(0)?.score ?? 0,
songHistory.data?.best ?? 0,
() => <Cup color={statColor} />,
],
] as const