mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-03 11:00:58 +08:00
Fix: Improve frontend code quality and null safety
- Remove unused variables and imports - Add null/undefined safety checks for account data display - Use optional chaining and nullish coalescing for safer data access - Remove unused "Input Prompt" display section (keeping CoT trace) - Fix TypeScript warnings and improve type safety Changes: - App.tsx: Add null checks for account fields, remove unused stats prop and input prompt display - ComparisonChart.tsx: Remove unused imports and variables This improves code quality without affecting functionality. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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) => (
|
||||
<Line
|
||||
key={trader.trader_id}
|
||||
type="monotone"
|
||||
|
||||
Reference in New Issue
Block a user