Skip to content

Commit

Permalink
feat: add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduma-ledger committed Nov 19, 2024
1 parent 46a7eed commit 5c4455f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/young-coats-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"ledger-live-desktop": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
"@ledgerhq/wallet-api-exchange-module": minor
---

Fixes app install and refactors logic
4 changes: 4 additions & 0 deletions libs/ledger-live-common/src/wallet-api/Exchange/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ function extractSellStartParam(
params: ExchangeStartSellParams,
accounts: AccountLike[],
): ExchangeStartParamsUiRequest {
if (!("provider" in params)) {
throw new ExchangeError(createWrongSellParams(params));
}

const realFromAccountId = getAccountIdFromWalletAccountId(params.fromAccountId);

if (!realFromAccountId) {
Expand Down

0 comments on commit 5c4455f

Please sign in to comment.