fix: update error handling for account data fetch on Trader Dashboard

This commit is contained in:
Dean
2026-03-27 21:17:48 +08:00
committed by shinchan-zhai
parent 1d897f635e
commit c6adc34247
+1 -5
View File
@@ -491,11 +491,7 @@ export function TraderDashboardPage({
<span>PNL::{account.total_pnl?.toFixed(2)}</span>
</div>
) : accountFailed ? (
<div className="flex gap-4">
<span>LAST_UPDATE::--</span>
<span>EQ::--</span>
<span>PNL::--</span>
</div>
<span style={{ color: '#F6465D' }}>DATA_FETCH::FAILED </span>
) : (
<div className="flex gap-4">
<span className="inline-block w-32 h-3 rounded bg-white/5 animate-pulse" />