Inplace what now
This commit is contained in:
parent
05802d7ba4
commit
f3e82306f5
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import {PlayerO} from "@/holycow"
|
|||
export default async function Page() {
|
||||
const resultsResponse = await fetch(`${process.env.BASE_URL}/api/results/`, {cache: "no-store"})
|
||||
const results: PlayerO[] = await resultsResponse.json()
|
||||
const ratedPlayers = results.filter(p => p.human_score !== null).toSorted((a, b) => a.human_score - b.human_score).toReversed()
|
||||
const ratedPlayers = results.filter(p => p.human_score !== null).sort((a, b) => a.human_score - b.human_score).reverse()
|
||||
|
||||
return (
|
||||
<BoardBox
|
||||
|
|
Loading…
Add table
Reference in a new issue