diff --git a/ui/src/app/components/leaderboard/LiveRow.tsx b/ui/src/app/components/leaderboard/LiveRow.tsx index 46bdcade7..656906de4 100644 --- a/ui/src/app/components/leaderboard/LiveRow.tsx +++ b/ui/src/app/components/leaderboard/LiveRow.tsx @@ -26,10 +26,12 @@ const LiveLeaderboardRow = ({ const { gameContract } = useContracts(); const { play: clickPlay } = useUiSounds(soundSelector.click); const addToCalls = useTransactionCartStore((state) => state.addToCalls); + const removeEntrypointFromCalls = useTransactionCartStore( + (state) => state.removeEntrypointFromCalls + ); const { data: blockData } = useBlock({ refetchInterval: false, }); - const dead = (adventurer.health ?? 0) <= 0; const adventurersByOwner = useQueriesStore( (state) => state.data.adventurersByOwnerQuery?.adventurers ?? [] ); @@ -45,6 +47,7 @@ const LiveLeaderboardRow = ({ ); const topScoreAdventurer = topScores[0]?.id === adventurer.id; const handleSlayAdventurer = async () => { + removeEntrypointFromCalls("slay_idle_adventurers"); setSlayAdventurers([ ...slayAdventurers, adventurer?.id?.toString() ?? "0", @@ -93,16 +96,16 @@ const LiveLeaderboardRow = ({ }} > {`${adventurer.name} - ${adventurer.id}`} + {calculateLevel(adventurer.xp ?? 0)} + + {adventurer.xp} + {adventurer.gold ? adventurer.gold : 0} - - {adventurer.xp} - - {calculateLevel(adventurer.xp ?? 0)} {adventurer.health} diff --git a/ui/src/app/components/leaderboard/LiveTable.tsx b/ui/src/app/components/leaderboard/LiveTable.tsx index 158e371a5..d218aab14 100644 --- a/ui/src/app/components/leaderboard/LiveTable.tsx +++ b/ui/src/app/components/leaderboard/LiveTable.tsx @@ -72,9 +72,9 @@ const LiveLeaderboardTable = ({ Adventurer - Gold - XP Level + XP + Gold Health Idle diff --git a/ui/src/app/components/leaderboard/ScoreTable.tsx b/ui/src/app/components/leaderboard/ScoreTable.tsx index eb33ce2b1..119ecd8b9 100644 --- a/ui/src/app/components/leaderboard/ScoreTable.tsx +++ b/ui/src/app/components/leaderboard/ScoreTable.tsx @@ -92,7 +92,7 @@ const ScoreLeaderboardTable = ({ return (
-

Submitted Scores

+

Leaderboard

{scores.length > 0 ? (