From 8d98542362c58cc293df9c6603b30dc9a7c1fb9d Mon Sep 17 00:00:00 2001 From: GameDog9988 Date: Fri, 28 Jun 2024 15:46:06 -0400 Subject: [PATCH] feat: add `as Game` to invite page for hopefully working vercel build --- apps/client/src/app/invite/[code]/page.tsx | 2 +- apps/client/src/utils/socket.ts | 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 72b2d24..8446091 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; + runningGame = runningGameQuery.game as Game; } } diff --git a/apps/client/src/utils/socket.ts b/apps/client/src/utils/socket.ts index eb1be11..3a1529c 100644 --- a/apps/client/src/utils/socket.ts +++ b/apps/client/src/utils/socket.ts @@ -1,7 +1,7 @@ import type { EventFrom } from "xstate"; import { Socket, io } from "socket.io-client"; -import { RoomInfo, UserVote } from "@ai/utils/queries"; +import type { RoomInfo, UserVote } from "@ai/utils/queries"; import { gameMachine } from "@ai/components/game/game-machine"; export interface ServerToClientEvents {