diff --git a/pages/leaderboard/[period].tsx b/pages/leaderboard/[period].tsx index b10e0e4e9..417244424 100644 --- a/pages/leaderboard/[period].tsx +++ b/pages/leaderboard/[period].tsx @@ -614,19 +614,25 @@ const MarketBreakdownModal = ({ markets }: { markets: MarketSummary[] }) => { <> setIsOpen(true)}>View Breakdown setIsOpen(false)}> - - - total:{" "} - {markets.reduce((prev, curr) => { - return prev + curr.profit; - }, 0)} - + + Market Profit Breakdown {markets .sort((a, b) => b.profit - a.profit) .map((market, index) => ( - - {market.question} - ${market.profit.toFixed(2)} + + + {market.question} + + 0 ? "text-green-600" : "text-red-600" + }`} + > + ${market.profit.toFixed(2)} + ))}