diff --git a/.changeset/young-coats-flash.md b/.changeset/young-coats-flash.md new file mode 100644 index 000000000000..d28a74b61013 --- /dev/null +++ b/.changeset/young-coats-flash.md @@ -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 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 12014f2e17f4..43eecab52fa1 100644 --- a/libs/ledger-live-common/src/wallet-api/Exchange/server.ts +++ b/libs/ledger-live-common/src/wallet-api/Exchange/server.ts @@ -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) {