aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/states/watch.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-08 10:32:05 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 10:39:25 +0900
commitc889a9ad33374eae03cec5b0358d79016d6fd97e (patch)
tree852a080bc1b0e68e5f46f8bca0ff787aafd314e1 /frontend/app/states/watch.ts
parent8dbdf96e674c1e26d7c98af8d0608f30bc1bf166 (diff)
downloadphperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.tar.gz
phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.tar.zst
phperkaigi-2025-albatross-c889a9ad33374eae03cec5b0358d79016d6fd97e.zip
show ranking
Diffstat (limited to 'frontend/app/states/watch.ts')
-rw-r--r--frontend/app/states/watch.ts5
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;