Huh
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
<ul class="leaderboard">
|
||||
|
||||
|
||||
{#if scores.length === 0}
|
||||
No scores for now...
|
||||
{/if}
|
||||
|
||||
@@ -5,6 +5,5 @@ export const load = async ( {fetch} ) => {
|
||||
|
||||
const res = await fetch(`${api_url}/leaderboard`)
|
||||
const leaderboard = await res.json()
|
||||
|
||||
return { leaderboard };
|
||||
}
|
||||
@@ -9,6 +9,7 @@
|
||||
scoreStore.load(data.leaderboard)
|
||||
} )
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<LeaderBoard bind:scores={$scoreStore}></LeaderBoard>
|
||||
|
||||
Reference in New Issue
Block a user