Skip to content

Commit

Permalink
fix(live-13395): set toNewTokenId to hash params (#7393)
Browse files Browse the repository at this point in the history
* fix: set toNewTokenId to  hash params

* chore: changeset
  • Loading branch information
liviuciulinaru committed Jul 23, 2024
1 parent b8aa007 commit 721b45b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-pots-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

set toNewTokenId to hash params
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ const SwapWebView = ({
to: targetCurrency?.id,
toAccountId: swapState?.toAccountId,
fromAccountId: swapState?.fromAccountId,
toNewTokenId: swapState?.toNewTokenId,
};

Object.entries(swapParams).forEach(([key, value]) => {
Expand All @@ -429,16 +430,17 @@ const SwapWebView = ({
}, [
addressFrom,
addressTo,
fromCurrency,
isMaxEnabled,
sourceCurrency?.id,
swapState?.error,
swapState?.estimatedFees,
swapState?.fromAmount,
swapState?.error,
swapState?.loading,
swapState?.estimatedFees,
swapState?.provider,
swapState?.toAccountId,
swapState?.fromAccountId,
swapState?.toNewTokenId,
sourceCurrency?.id,
isMaxEnabled,
fromCurrency,
targetCurrency?.id,
]);

Expand Down

0 comments on commit 721b45b

Please sign in to comment.