From 6692f5fe6701a4e47c626ea3cbb73a4641c9021d Mon Sep 17 00:00:00 2001 From: Andrei Covaciu Date: Tue, 11 Jun 2024 15:08:27 +0300 Subject: [PATCH] LIVE-12193: sends device model for swap operations (#7058) fix: sends device model for swap operations --- .changeset/tricky-pandas-accept.md | 5 +++++ libs/ledger-live-common/src/wallet-api/Exchange/server.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/tricky-pandas-accept.md diff --git a/.changeset/tricky-pandas-accept.md b/.changeset/tricky-pandas-accept.md new file mode 100644 index 000000000000..85522a472ee6 --- /dev/null +++ b/.changeset/tricky-pandas-accept.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +Sends device value for swap accepted & cancelled operations diff --git a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts index b266d8027ef0..dbd1d9a476ff 100644 --- a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts +++ b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts @@ -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);