diff --git a/web/src/App.tsx b/web/src/App.tsx index 026c3e2a..57c2e2f5 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -290,7 +290,6 @@ function TraderDetailsPage({ account, positions, decisions, - stats, lastUpdate, language, }: { @@ -369,25 +368,25 @@ function TraderDetailsPage({
0 : false} + positive={(account?.total_pnl ?? 0) > 0} /> = 0 ? '+' : ''}${account?.total_pnl.toFixed(2) || '0.00'} USDT`} + value={`${account?.total_pnl !== undefined && account.total_pnl >= 0 ? '+' : ''}${account?.total_pnl?.toFixed(2) || '0.00'} USDT`} change={account?.total_pnl_pct || 0} - positive={account ? account.total_pnl >= 0 : false} + positive={(account?.total_pnl ?? 0) >= 0} />
@@ -559,7 +558,6 @@ function StatCard({ // Decision Card Component with CoT Trace - Binance Style function DecisionCard({ decision, language }: { decision: DecisionRecord; language: Language }) { - const [showInput, setShowInput] = useState(false); const [showCoT, setShowCoT] = useState(false); return ( @@ -583,25 +581,6 @@ function DecisionCard({ decision, language }: { decision: DecisionRecord; langua - {/* AI Input Prompt - Collapsible */} - {decision.input_prompt && ( -
- - {showInput && ( -
- {decision.input_prompt} -
- )} -
- )} - {/* AI Chain of Thought - Collapsible */} {decision.cot_trace && (
diff --git a/web/src/components/ComparisonChart.tsx b/web/src/components/ComparisonChart.tsx index 3fdc9dcc..ee94ef00 100644 --- a/web/src/components/ComparisonChart.tsx +++ b/web/src/components/ComparisonChart.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect, useMemo } from 'react'; +import { useMemo } from 'react'; import { LineChart, Line, @@ -275,7 +275,7 @@ export function ComparisonChart({ traders }: ComparisonChartProps) { }} /> - {traders.map((trader, index) => ( + {traders.map((trader) => (