From 95af12e3a2ac4692dd2dcc9a4b23ca07aea40020 Mon Sep 17 00:00:00 2001 From: Shui <88711385+hzb1115@users.noreply.github.com> Date: Thu, 6 Nov 2025 20:58:13 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(web):=20prevent=20NaN%=20display?= =?UTF-8?q?=20in=20competition=20gap=20calculation=20(#633)=20=E2=80=A6"?= =?UTF-8?q?=20(#676)=20This=20reverts=20commit=208db6dc3b061bd044abb7e3bdb?= =?UTF-8?q?995c01a2bc6c78f.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/CompetitionPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/CompetitionPage.tsx b/web/src/components/CompetitionPage.tsx index b9d1946e..2c1effd2 100644 --- a/web/src/components/CompetitionPage.tsx +++ b/web/src/components/CompetitionPage.tsx @@ -392,7 +392,7 @@ export function CompetitionPage() { {sortedTraders.map((trader, index) => { const isWinning = index === 0 const opponent = sortedTraders[1 - index] - const gap = (trader.total_pnl_pct ?? 0) - (opponent.total_pnl_pct ?? 0) + const gap = trader.total_pnl_pct - opponent.total_pnl_pct return (