From 56eb733fd7a5ac29b4d93c6dbc60ad6293751486 Mon Sep 17 00:00:00 2001 From: Kevin Thomas Date: Wed, 11 Dec 2024 00:02:39 -0800 Subject: [PATCH] fix: build errors --- src/contexts/PlayControllerContext/PlayControllerContext.ts | 4 ++-- src/hooks/usePlayController/usePlayController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/contexts/PlayControllerContext/PlayControllerContext.ts b/src/contexts/PlayControllerContext/PlayControllerContext.ts index 471eba5..762f9a6 100644 --- a/src/contexts/PlayControllerContext/PlayControllerContext.ts +++ b/src/contexts/PlayControllerContext/PlayControllerContext.ts @@ -25,8 +25,8 @@ export const PlayControllerContext = blackClock: 0, lastMoveTime: 0, stats: { - lifetimeStats: undefined, - sessionStats: { gamesWon: 0, gamesPlayed: 0 }, + lifetime: undefined, + session: { gamesWon: 0, gamesPlayed: 0 }, lastRating: undefined, rating: 0, }, diff --git a/src/hooks/usePlayController/usePlayController.ts b/src/hooks/usePlayController/usePlayController.ts index fbc189d..f00a810 100644 --- a/src/hooks/usePlayController/usePlayController.ts +++ b/src/hooks/usePlayController/usePlayController.ts @@ -221,8 +221,8 @@ export const usePlayController = ( const setCurrentSquare = async (key: string | null) => undefined const stats: AllStats = { - lifetimeStats: undefined, - sessionStats: { gamesWon: 0, gamesPlayed: 0 }, + lifetime: undefined, + session: { gamesWon: 0, gamesPlayed: 0 }, lastRating: undefined, rating: 0, }