From 90af9dbca6a829c389b0093da92192fd29a7622d 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)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8db6dc3b061bd044abb7e3bdb995c01a2bc6c78f. --- 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 (