fix: await promises correctly
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s
This commit is contained in:
parent
fdf4f9c19f
commit
524316d864
1 changed files with 4 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue