From 302890a4ace3028bb4c100c9bb0acd949b53aea5 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Wed, 31 Jul 2024 10:31:51 +0200 Subject: [PATCH] Fix : change route param to query arg in create game function --- netcode/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/netcode/index.ts b/netcode/index.ts index 7b29da8..7824389 100644 --- a/netcode/index.ts +++ b/netcode/index.ts @@ -53,8 +53,7 @@ export async function createGame() { method: "POST", credentials: "include", }); - console.log(res); - navigateTo("/game/" + res._id); + navigateTo(`/game?id=${res._id}`); } export async function startGame(game: string) {