diff --git a/frontend/src/lib/services/accounts-balances.services.ts b/frontend/src/lib/services/accounts-balances.services.ts index 08fd03ca35..35a4af61d6 100644 --- a/frontend/src/lib/services/accounts-balances.services.ts +++ b/frontend/src/lib/services/accounts-balances.services.ts @@ -1,7 +1,6 @@ import { uncertifiedLoadSnsesAccountsBalances } from "$lib/services/sns-accounts-balance.services"; import { uncertifiedLoadAccountsBalance } from "$lib/services/wallet-uncertified-accounts.services"; import type { UniverseCanisterIdText } from "$lib/types/universe"; -import { isArrayEmpty } from "$lib/utils/utils"; import type { CanisterIdString } from "@dfinity/nns"; import { Principal } from "@dfinity/principal"; @@ -19,8 +18,6 @@ const getNotLoadedIds = (ids: CanisterIdString[]): CanisterIdString[] => { export const loadSnsAccountsBalances = async ( rootCanisterIds: Principal[] ): Promise => { - if (rootCanisterIds.length === 0) return; - const stringIds = rootCanisterIds.map((id) => id.toText()); const notLoadedIds = getNotLoadedIds(stringIds); @@ -34,8 +31,6 @@ export const loadSnsAccountsBalances = async ( export const loadAccountsBalances = async ( universeIds: UniverseCanisterIdText[] ): Promise => { - if (isArrayEmpty(universeIds)) return; - const notLoadedIds = getNotLoadedIds(universeIds); if (notLoadedIds.length === 0) return;