diff --git a/frontend/src/pages/LeaderList.tsx b/frontend/src/pages/LeaderList.tsx index 4c9f9ae..50dd5e6 100644 --- a/frontend/src/pages/LeaderList.tsx +++ b/frontend/src/pages/LeaderList.tsx @@ -4,7 +4,7 @@ import { Card, Table, Button, Space, Tag, Popconfirm, message, List, Empty, Spin import { PlusOutlined, EditOutlined, DeleteOutlined, GlobalOutlined, EyeOutlined, ReloadOutlined, WalletOutlined } from '@ant-design/icons' import { useTranslation } from 'react-i18next' import { apiService } from '../services/api' -import type { Leader, LeaderBalanceResponse, PositionDto } from '../types' +import type { Leader, LeaderBalanceResponse } from '../types' import { useMediaQuery } from 'react-responsive' import { formatUSDC } from '../utils' @@ -215,9 +215,6 @@ const LeaderList: React.FC = () => { const color = numPnl > 0 ? '#52c41a' : '#ff4d4f' return {formatUSDC(pnl)} } - const numPnl = parseFloat(pnl) - const color = numPnl > 0 ? '#52c41a' : '#ff4d4f' - return {formatUSDC(pnl)} } } ]