Skip to content

Commit

Permalink
Let's get started
Browse files Browse the repository at this point in the history
  • Loading branch information
mradigen committed Apr 14, 2024
1 parent 4c43e3d commit f309804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/leaderboard/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
async function loadTeams() {
// loading = true;
const { data, error } = await supabase.from('leaderboard').select('name, points');
const { data, error } = await supabase
.from('leaderboard')
.select('name, points')
.order('points', { ascending: false });
if (error) console.log('Error Fetching Teams:', error.message);
if (data.length) leaderboard = data;
loading = false;
Expand Down

0 comments on commit f309804

Please sign in to comment.