Skip to content

Commit

Permalink
Merge pull request #5184 from LedgerHQ/bugfix/LIVE-9593
Browse files Browse the repository at this point in the history
[LL] - [LIVE-9593] - Fix networks not displaying for some tokens on receive and other screens
  • Loading branch information
sshmaxime authored Oct 25, 2023
2 parents 1261d2b + b4b5bd3 commit ff8738d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-dodos-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

Fix networks not displaying for some tokens on receive screen
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/deposit/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const groupCurrenciesByProvider = (
) => {
const assetsByLedgerId: Record<string, MappedAsset> = {};
for (const asset of assets) {
assetsByLedgerId[asset.ledgerId] = asset;
assetsByLedgerId[asset.ledgerId.toLowerCase()] = asset;
}
const assetsByProviderId: Record<string, CurrenciesByProviderId> = {};
for (const ledgerCurrency of currenciesSupported) {
const asset = assetsByLedgerId[ledgerCurrency.id];
const asset = assetsByLedgerId[ledgerCurrency.id.toLowerCase()];
if (asset) {
if (!assetsByProviderId[asset.providerId]) {
assetsByProviderId[asset.providerId] = {
Expand Down

1 comment on commit ff8738d

@vercel
Copy link

@vercel vercel bot commented on ff8738d Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.