This commit is contained in:
@@ -13,7 +13,10 @@ export async function getLobby() {
|
||||
const config = useRuntimeConfig();
|
||||
const req = await useFetch<Array<Game>>(config.public.endpoint + "/games", {
|
||||
credentials: "include",
|
||||
server: false,
|
||||
});
|
||||
// await req.execute();
|
||||
await req.execute();
|
||||
if (req.data.value == null) {
|
||||
throw new Error("Lobby answer is empty");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user