Skip to content

Commit

Permalink
fix: LNS Swap for SOL (#8640)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicovaciu authored Dec 9, 2024
1 parent 1daabaf commit 632e2c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-rice-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": minor
---

Fix LNS Swap for SOL
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ const INCOMPATIBLE_NANO_S_CURRENCY_KEYS: Keys = {
},
};
const getIncompatibleCurrencyKeys = (exchange: ExchangeSwap) => {
const parentFrom = exchange?.fromParentAccount?.currency?.id || "";
const parentTo = exchange?.toParentAccount?.currency?.id || "";
const parentFrom =
(exchange?.fromAccount?.type === "TokenAccount" && exchange?.fromParentAccount?.currency?.id) ||
"";
const parentTo =
(exchange?.toAccount?.type === "TokenAccount" && exchange?.toParentAccount?.currency?.id) || "";
const from =
(exchange?.fromAccount.type === "Account" && exchange?.fromAccount?.currency?.id) || "";
const to = (exchange?.toAccount.type === "Account" && exchange?.toAccount?.currency?.id) || "";
Expand Down

0 comments on commit 632e2c4

Please sign in to comment.