diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:32:05 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-08 10:39:25 +0900 |
| commit | c889a9ad33374eae03cec5b0358d79016d6fd97e (patch) | |
| tree | 852a080bc1b0e68e5f46f8bca0ff787aafd314e1 /frontend/app/states | |
| parent | 8dbdf96e674c1e26d7c98af8d0608f30bc1bf166 (diff) | |
| download | phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.tar.gz phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.tar.zst phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.zip | |
show ranking
Diffstat (limited to 'frontend/app/states')
| -rw-r--r-- | frontend/app/states/watch.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/frontend/app/states/watch.ts b/frontend/app/states/watch.ts index ad95e0a..d3cc723 100644 --- a/frontend/app/states/watch.ts +++ b/frontend/app/states/watch.ts @@ -58,10 +58,7 @@ export const gamingLeftTimeSecondsAtom = atom<number | null>((get) => { return Math.min(durationSeconds, Math.max(0, finishedAt - currentTimestamp)); }); -const rankingAtom = atom<RankingEntry[]>([]); -export const setRankingAtom = atom(null, (_, set, value: RankingEntry[]) => { - set(rankingAtom, value); -}); +export const rankingAtom = atom<RankingEntry[]>([]); const rawLatestGameStatesAtom = atom<{ [key: string]: LatestGameState | undefined; |
