fetch added directly to tournament page

This commit is contained in:
Owen Rees
2023-06-13 08:25:58 +02:00
parent d8e12c48af
commit bd60205fb0
2 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -14,5 +14,5 @@ export default async function getTournaments(country: string) {
if (res.status !== 200) {
throw new Error("Failed to fetch tournament data");
}
return res.json();
return await res.json();
}