Skip to content

Commit

Permalink
car
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Jan 8, 2025
1 parent 54adfa1 commit f1f65cb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/lib/services/accounts-balances.services.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -19,8 +18,6 @@ const getNotLoadedIds = (ids: CanisterIdString[]): CanisterIdString[] => {
export const loadSnsAccountsBalances = async (
rootCanisterIds: Principal[]
): Promise<void> => {
if (rootCanisterIds.length === 0) return;

const stringIds = rootCanisterIds.map((id) => id.toText());
const notLoadedIds = getNotLoadedIds(stringIds);

Expand All @@ -34,8 +31,6 @@ export const loadSnsAccountsBalances = async (
export const loadAccountsBalances = async (
universeIds: UniverseCanisterIdText[]
): Promise<void> => {
if (isArrayEmpty(universeIds)) return;

const notLoadedIds = getNotLoadedIds(universeIds);

if (notLoadedIds.length === 0) return;
Expand Down

0 comments on commit f1f65cb

Please sign in to comment.