This commit is contained in:
Laurent
2024-10-28 13:06:31 +00:00
parent d6abdb252d
commit 7526af0699
3 changed files with 5 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
<ul class="leaderboard">
{#if scores.length === 0}
No scores for now...
{/if}

View File

@@ -5,6 +5,5 @@ export const load = async ( {fetch} ) => {
const res = await fetch(`${api_url}/leaderboard`)
const leaderboard = await res.json()
return { leaderboard };
}

View File

@@ -9,6 +9,7 @@
scoreStore.load(data.leaderboard)
} )
</script>
<LeaderBoard bind:scores={$scoreStore}></LeaderBoard>