From 372c3cdb580184fe3e4ee394f93a18632e25bb3d Mon Sep 17 00:00:00 2001 From: minhd-vu Date: Mon, 26 Feb 2024 01:51:36 -0500 Subject: [PATCH] add key to leaderboard --- app/leaderboard/page.tsx | 2 +- components/LeaderboardRow.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/leaderboard/page.tsx b/app/leaderboard/page.tsx index 98ddb27..bffbb91 100644 --- a/app/leaderboard/page.tsx +++ b/app/leaderboard/page.tsx @@ -28,7 +28,7 @@ export default async function Leaderboard() { const users = await getLeaderboardUsers(); const rows = users.map((user, i) => ( - + )); return ( diff --git a/components/LeaderboardRow.tsx b/components/LeaderboardRow.tsx index 14fed9e..64fdd01 100644 --- a/components/LeaderboardRow.tsx +++ b/components/LeaderboardRow.tsx @@ -17,7 +17,7 @@ export default function LeaderboardRow({ } return ( - onClick()}> + onClick()}> {rank} {user.name} {user.kills}