Skip to content

Commit

Permalink
LIVE-12193: sends device model for swap operations (#7058)
Browse files Browse the repository at this point in the history
fix: sends device model for swap operations
  • Loading branch information
andreicovaciu committed Jun 11, 2024
1 parent 0e5b042 commit 6692f5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-pandas-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

Sends device value for swap accepted & cancelled operations
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/wallet-api/Exchange/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ export const handlers = ({
return new Promise((resolve, reject) =>
uiExchangeStart({
exchangeParams,
onSuccess: (nonce: string) => {
onSuccess: (nonce: string, device) => {
tracking.startExchangeSuccess(manifest);
resolve({ transactionId: nonce });
resolve({ transactionId: nonce, device });
},
onCancel: error => {
tracking.completeExchangeFail(manifest);
Expand Down

0 comments on commit 6692f5f

Please sign in to comment.