Skip to content

Commit

Permalink
fixup! chore(suite): update network symbol naming
Browse files Browse the repository at this point in the history
  • Loading branch information
adderpositive committed Nov 28, 2024
1 parent 4f3b7f8 commit e5314e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/suite/src/views/dashboard/AssetsView/AssetsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,16 @@ export const AssetsView = () => {

const assets: PartialRecord<NetworkSymbol, Account[]> = {};

accounts.forEach(a => {
let symbolAssets = assets[a.symbol];
accounts.forEach(account => {
let symbolAssets = assets[account.symbol];

if (!symbolAssets) {
symbolAssets = [];
}

symbolAssets.push(a);
symbolAssets.push(account);

assets[account.symbol] = symbolAssets;
});

const assetSymbols = Object.keys(assets) as NetworkSymbol[];
Expand Down

0 comments on commit e5314e1

Please sign in to comment.