diff --git a/src/components/platform-entry/PlatformActiveProfileView.tsx b/src/components/platform-entry/PlatformActiveProfileView.tsx index 034ce759d..27468698e 100644 --- a/src/components/platform-entry/PlatformActiveProfileView.tsx +++ b/src/components/platform-entry/PlatformActiveProfileView.tsx @@ -243,6 +243,19 @@ function formatDashboardCount(value: number) { return Math.max(0, Math.round(value)).toLocaleString('zh-CN'); } +function formatWalletBalance( + balance: ProfileMudPointBalance | null, + isLoading: boolean, +) { + if (balance) { + return formatDashboardCount(balance.totalPoints); + } + if (isLoading) { + return '读取中'; + } + return '暂不可用'; +} + function formatTotalPlayTime(value: number) { const hours = Math.max(0, Math.round(value / 360000) / 10); return `${hours.toLocaleString('zh-CN', { @@ -547,13 +560,10 @@ export function PlatformActiveProfileView({