fix(frontend): 修复 BacktestList 与 AddModal 的 TypeScript 类型错误

- BacktestList: Option 改为 Select.Option,避免与原生 HTML Option 冲突
- AddModal: onSelectChange 仅在 value 有值时调用 fetchLeaderAssetInfo

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-09 02:46:27 +08:00
co-authored by Cursor
parent 366d3d1b25
commit 1df438d18d
2 changed files with 6 additions and 6 deletions
@@ -473,7 +473,7 @@ const AddModal: React.FC<AddModalProps> = ({
<LeaderSelect
leaders={leaders}
placeholder={t('copyTradingAdd.selectLeaderPlaceholder') || '请选择 Leader'}
onSelectChange={(value) => fetchLeaderAssetInfo(value)}
onSelectChange={(value) => value !== undefined && fetchLeaderAssetInfo(value)}
notFoundContent={
leaders.length === 0 ? (
<div style={{ textAlign: 'center', padding: '12px' }}>