perf: reduce frontend login and dashboard friction (#1447)

Co-authored-by: apple <apple@MacbookPro-zbh.local>
This commit is contained in:
Zavier
2026-03-31 20:40:12 +08:00
committed by shinchan-zhai
parent fa048b44ac
commit 47fb1c4675
6 changed files with 26 additions and 33 deletions

View File

@@ -259,7 +259,6 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) {
}
const handleSaveEditTrader = async (data: CreateTraderRequest) => {
console.log('🔥🔥🔥 handleSaveEditTrader CALLED with data:', data)
if (!editingTrader) return
try {
@@ -287,10 +286,6 @@ export function AITradersPage({ onTraderSelect }: AITradersPageProps) {
show_in_competition: data.show_in_competition,
}
console.log('🔥 handleSaveEditTrader - data:', data)
console.log('🔥 handleSaveEditTrader - data.strategy_id:', data.strategy_id)
console.log('🔥 handleSaveEditTrader - request:', request)
await api.updateTrader(editingTrader.trader_id, request)
toast.success(t('aiTradersToast.saved', language))
setShowEditModal(false)