fix(mining-admin-web): fix TypeScript type for empty mainPools array

This commit is contained in:
hailin 2026-01-14 01:55:58 -08:00
parent a7a2282ba7
commit 4292d5da66
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export function categorizeAccounts(accounts: SystemAccount[]) {
const regionAccounts = ['PROVINCE', 'CITY'];
return {
mainPools: [], // 池账户现在从 poolAccounts API 获取
mainPools: [] as SystemAccount[], // 池账户现在从 poolAccounts API 获取
systemAccounts: accounts.filter((a) => coreAccounts.includes(a.accountType)),
fixedAccounts: accounts.filter((a) => regionAccounts.includes(a.accountType)),
otherAccounts: accounts.filter(