fix: await promises correctly
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s

This commit is contained in:
uku 2024-10-27 18:56:01 +01:00
parent fdf4f9c19f
commit 524316d864
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -115,9 +115,11 @@
</script>
<div class="container">
{#await mapPromise.then(() => gamePromise)}
{#await Promise.all([mapPromise, gamePromise])}
<h1>Loading...</h1>
{:then gameData}
<div><button disabled>Loading...</button></div>
{:then [, gameData]}
<h1>{gameData.stopName}</h1>
<div>