diff --git a/.changeset/brave-dodos-turn.md b/.changeset/brave-dodos-turn.md new file mode 100644 index 000000000000..9a3dcb14428e --- /dev/null +++ b/.changeset/brave-dodos-turn.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +Fix networks not displaying for some tokens on receive screen diff --git a/libs/ledger-live-common/src/deposit/helper.ts b/libs/ledger-live-common/src/deposit/helper.ts index ae1f871d1813..62ad82b21289 100644 --- a/libs/ledger-live-common/src/deposit/helper.ts +++ b/libs/ledger-live-common/src/deposit/helper.ts @@ -7,11 +7,11 @@ const groupCurrenciesByProvider = ( ) => { const assetsByLedgerId: Record = {}; for (const asset of assets) { - assetsByLedgerId[asset.ledgerId] = asset; + assetsByLedgerId[asset.ledgerId.toLowerCase()] = asset; } const assetsByProviderId: Record = {}; 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] = {