From d4c327846141b8ea70aaf9a6db918f4f25132e56 Mon Sep 17 00:00:00 2001 From: Maxime Aubanel Date: Tue, 24 Oct 2023 17:14:59 +0200 Subject: [PATCH 1/3] Fix ledgerCurrency id to lowercase --- libs/ledger-live-common/src/deposit/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ledger-live-common/src/deposit/helper.ts b/libs/ledger-live-common/src/deposit/helper.ts index ae1f871d1813..7505250c2706 100644 --- a/libs/ledger-live-common/src/deposit/helper.ts +++ b/libs/ledger-live-common/src/deposit/helper.ts @@ -11,7 +11,7 @@ const groupCurrenciesByProvider = ( } 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] = { From 2ec53606794c84a08fa49898c31ee976f3a8b9cc Mon Sep 17 00:00:00 2001 From: Maxime Aubanel Date: Wed, 25 Oct 2023 10:45:01 +0200 Subject: [PATCH 2/3] Add changeset --- .changeset/brave-dodos-turn.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/brave-dodos-turn.md 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 From b4b5bd3bc071c5f08f4af9748f46cc9e9ea4b66e Mon Sep 17 00:00:00 2001 From: Maxime Aubanel Date: Wed, 25 Oct 2023 11:40:17 +0200 Subject: [PATCH 3/3] Add lowercase extra safety --- libs/ledger-live-common/src/deposit/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ledger-live-common/src/deposit/helper.ts b/libs/ledger-live-common/src/deposit/helper.ts index 7505250c2706..62ad82b21289 100644 --- a/libs/ledger-live-common/src/deposit/helper.ts +++ b/libs/ledger-live-common/src/deposit/helper.ts @@ -7,7 +7,7 @@ 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) {