diff --git a/pages/game/[id].vue b/pages/game/[id].vue index a33296f..17d3025 100644 --- a/pages/game/[id].vue +++ b/pages/game/[id].vue @@ -23,12 +23,9 @@ const { pending, error, refresh, -} = await useFetch( - new URL(`/games/${gameId}`, config.public.endpoint).href, - { - credentials: "include", - } -); +} = await useFetch(config.public.endpoint + `/games/${gameId}`, { + credentials: "include", +}); if (game.value == null) { navigateTo("/lobby");