Skip to content

Commit d12b0e5

Browse files
authored
Merge pull request #10092 from LedgerHQ/fix/return-has-exchange-complete
fix: return hash instead id in exchange complete methods in LLM
2 parents 2983b36 + 99c2277 commit d12b0e5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/soft-meals-cover.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"live-mobile": minor
3+
---
4+
5+
Return hash instead id in exchange complete methods

apps/ledger-live-mobile/src/components/Web3AppWebview/helpers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ function useUiHook(): UiHook {
515515
onCancel(result.error);
516516
}
517517
if (result.operation) {
518-
onSuccess(result.operation.id);
518+
onSuccess(result.operation.hash);
519519
}
520520
setDevice(undefined);
521521
const n =

apps/ledger-live-mobile/src/components/WebPTXPlayer/CustomHandlers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function usePTXCustomHandlers(manifest: WebviewProps["manifest"], account
9696
});
9797
}
9898
if (result.operation) {
99-
onSuccess(result.operation.id);
99+
onSuccess(result.operation.hash);
100100
}
101101
setDevice(undefined);
102102
!result.error && navigation.pop();

0 commit comments

Comments
 (0)