Skip to content

Commit 2b5d694

Browse files
hzb1115xqliu
authored andcommitted
Revert "fix(web): prevent NaN% display in competition gap calculation (NoFxAiOS#633) …" (NoFxAiOS#676)
This reverts commit 8db6dc3.
1 parent 20f4029 commit 2b5d694

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/components/CompetitionPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export function CompetitionPage() {
392392
{sortedTraders.map((trader, index) => {
393393
const isWinning = index === 0
394394
const opponent = sortedTraders[1 - index]
395-
const gap = (trader.total_pnl_pct ?? 0) - (opponent.total_pnl_pct ?? 0)
395+
const gap = trader.total_pnl_pct - opponent.total_pnl_pct
396396

397397
return (
398398
<div

0 commit comments

Comments
 (0)