diff --git a/web/pages/experimental/home/index.tsx b/web/pages/experimental/home/index.tsx index f0352fb1..753270fe 100644 --- a/web/pages/experimental/home/index.tsx +++ b/web/pages/experimental/home/index.tsx @@ -50,7 +50,7 @@ const Home = () => { - + {sections.map((item) => { const { id } = item @@ -194,22 +194,13 @@ function DailyProfitAndBalance(props: { const profit = calculatePortfolioProfit(last) - calculatePortfolioProfit(first) - const balanceChange = last.balance - first.balance - return (
= 0 ? 'text-green-500' : 'text-red-500')}> {profit >= 0 && '+'} {formatMoney(profit)} {' '} - profit and{' '} - = 0 ? 'text-green-500' : 'text-red-500')} - > - {balanceChange >= 0 && '+'} - {formatMoney(balanceChange)} - {' '} - balance today + profit today
) }