From 7c7a190b8fb4d5331b14b65382173ca7f947eb24 Mon Sep 17 00:00:00 2001 From: Maxim Date: Tue, 16 Apr 2024 14:31:41 +0200 Subject: [PATCH] Fix for scoreboard --- src/frontend/overlay/src/redux/contest/scoreboard.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/frontend/overlay/src/redux/contest/scoreboard.ts b/src/frontend/overlay/src/redux/contest/scoreboard.ts index 93e7ef20b..1bfe11044 100644 --- a/src/frontend/overlay/src/redux/contest/scoreboard.ts +++ b/src/frontend/overlay/src/redux/contest/scoreboard.ts @@ -16,13 +16,16 @@ export type ScoreboardState = { [key in OptimismLevel]: ScoreboardData } + const initialState: ScoreboardState = Object.fromEntries( - Object.keys(OptimismLevel).map((key) => [key, { + Object.keys(OptimismLevel).map((key: OptimismLevel) => [key, { ids: {}, idAwards: {}, order: [], ranks: [], - awards: [] + awards: [], + orderById: {}, + rankById: {} }]) ) as ScoreboardState;