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

@@ -5,7 +5,8 @@
</script>
<ul class="leaderboard">
{#if scores.length === 0}
No scores for now...
{/if}
@@ -73,4 +74,4 @@
text-align: center;
}
</style>
</style>

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>