This commit is contained in:
+3
-6
@@ -23,12 +23,9 @@ const {
|
||||
pending,
|
||||
error,
|
||||
refresh,
|
||||
} = await useFetch<Game>(
|
||||
new URL(`/games/${gameId}`, config.public.endpoint).href,
|
||||
{
|
||||
credentials: "include",
|
||||
}
|
||||
);
|
||||
} = await useFetch<Game>(config.public.endpoint + `/games/${gameId}`, {
|
||||
credentials: "include",
|
||||
});
|
||||
|
||||
if (game.value == null) {
|
||||
navigateTo("/lobby");
|
||||
|
||||
Reference in New Issue
Block a user