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 = ({ }} >