From 64e3b0e2f53086f49a467ef3b90c9002fe856874 Mon Sep 17 00:00:00 2001 From: GameDog9988 Date: Fri, 28 Jun 2024 16:44:37 -0400 Subject: [PATCH] revert: remove `as Game` since we reverted TypeScript version --- apps/client/src/app/invite/[code]/page.tsx | 2 +- apps/client/src/app/page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/invite/[code]/page.tsx b/apps/client/src/app/invite/[code]/page.tsx index 8446091..72b2d24 100644 --- a/apps/client/src/app/invite/[code]/page.tsx +++ b/apps/client/src/app/invite/[code]/page.tsx @@ -17,7 +17,7 @@ export default async function Invite({ params }: { params: { code: string } }) { const runningGameQuery = await getRunningGame({ session }); if (runningGameQuery) { - runningGame = runningGameQuery.game as Game; + runningGame = runningGameQuery.game; } } diff --git a/apps/client/src/app/page.tsx b/apps/client/src/app/page.tsx index 78a2e27..4dd8077 100644 --- a/apps/client/src/app/page.tsx +++ b/apps/client/src/app/page.tsx @@ -14,7 +14,7 @@ export default async function Home() { const runningGameQuery = await getRunningGame({ session }); if (runningGameQuery) { - runningGame = runningGameQuery.game as Game; + runningGame = runningGameQuery.game; } }