mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-15 08:46:58 +08:00
fix: update error handling for account data fetch on Trader Dashboard
This commit is contained in:
@@ -491,11 +491,7 @@ export function TraderDashboardPage({
|
|||||||
<span>PNL::{account.total_pnl?.toFixed(2)}</span>
|
<span>PNL::{account.total_pnl?.toFixed(2)}</span>
|
||||||
</div>
|
</div>
|
||||||
) : accountFailed ? (
|
) : accountFailed ? (
|
||||||
<div className="flex gap-4">
|
<span style={{ color: '#F6465D' }}>DATA_FETCH::FAILED — 账户数据请求失败,请检查连接</span>
|
||||||
<span>LAST_UPDATE::--</span>
|
|
||||||
<span>EQ::--</span>
|
|
||||||
<span>PNL::--</span>
|
|
||||||
</div>
|
|
||||||
) : (
|
) : (
|
||||||
<div className="flex gap-4">
|
<div className="flex gap-4">
|
||||||
<span className="inline-block w-32 h-3 rounded bg-white/5 animate-pulse" />
|
<span className="inline-block w-32 h-3 rounded bg-white/5 animate-pulse" />
|
||||||
|
|||||||
Reference in New Issue
Block a user