From 12b6153a4e80b0b20ccc37965e9bc219873e5cbc Mon Sep 17 00:00:00 2001 From: Jagoda Berry Rybacka Date: Thu, 9 Nov 2023 18:04:35 +0100 Subject: [PATCH] Cut the decimal part on the leaderboard --- .../Island/RealmDetails/LeaderboardList/LeaderboardItem.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/Island/RealmDetails/LeaderboardList/LeaderboardItem.tsx b/src/ui/Island/RealmDetails/LeaderboardList/LeaderboardItem.tsx index ef3dd0c05..2079913ac 100644 --- a/src/ui/Island/RealmDetails/LeaderboardList/LeaderboardItem.tsx +++ b/src/ui/Island/RealmDetails/LeaderboardList/LeaderboardItem.tsx @@ -64,7 +64,9 @@ export default function LeaderboardItem({ {username || truncateAddress(address)} - {bigIntToDisplayUserAmount(amount)} XP + + {bigIntToDisplayUserAmount(amount, 18, 0)} XP +