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 {