From c7cd31258536ab7addc44927247531d6d65ed022 Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Sun, 27 Mar 2022 20:24:34 -0500
Subject: Fix leaderboard indexes being off by 1 in profile

---
 src/lib/sections/Leaderboards.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/sections/Leaderboards.svelte')

diff --git a/src/lib/sections/Leaderboards.svelte b/src/lib/sections/Leaderboards.svelte
index 72537cc..2041733 100644
--- a/src/lib/sections/Leaderboards.svelte
+++ b/src/lib/sections/Leaderboards.svelte
@@ -14,7 +14,7 @@
 		{#each leaderboards as leaderboard}
 			<li class="leaderboard-item">
 				<a href="/leaderboard/{leaderboard.name}" class="leaderboard-item-anchor">
-					{leaderboard.positionIndex}) <b>{cleanId(leaderboard.name)}</b>: {leaderboard.value.toLocaleString()}
+					{leaderboard.positionIndex + 1}) <b>{cleanId(leaderboard.name)}</b>: {leaderboard.value.toLocaleString()}
 				</a>
 			</li>
 		{/each}
-- 
cgit 

