fix(mining-admin-web): fix TypeScript type for empty mainPools array
This commit is contained in:
parent
a7a2282ba7
commit
4292d5da66
|
|
@ -31,7 +31,7 @@ export function categorizeAccounts(accounts: SystemAccount[]) {
|
||||||
const regionAccounts = ['PROVINCE', 'CITY'];
|
const regionAccounts = ['PROVINCE', 'CITY'];
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mainPools: [], // 池账户现在从 poolAccounts API 获取
|
mainPools: [] as SystemAccount[], // 池账户现在从 poolAccounts API 获取
|
||||||
systemAccounts: accounts.filter((a) => coreAccounts.includes(a.accountType)),
|
systemAccounts: accounts.filter((a) => coreAccounts.includes(a.accountType)),
|
||||||
fixedAccounts: accounts.filter((a) => regionAccounts.includes(a.accountType)),
|
fixedAccounts: accounts.filter((a) => regionAccounts.includes(a.accountType)),
|
||||||
otherAccounts: accounts.filter(
|
otherAccounts: accounts.filter(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue