diff --git a/.changeset/cyan-peas-sit.md b/.changeset/cyan-peas-sit.md new file mode 100644 index 000000000000..3b75e82e3a23 --- /dev/null +++ b/.changeset/cyan-peas-sit.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +fix(wallet-api): missing new on error constructor diff --git a/libs/ledger-live-common/src/wallet-api/react.ts b/libs/ledger-live-common/src/wallet-api/react.ts index e43e1680188f..e8cfaacfa19f 100644 --- a/libs/ledger-live-common/src/wallet-api/react.ts +++ b/libs/ledger-live-common/src/wallet-api/react.ts @@ -414,7 +414,7 @@ export function useWalletAPIServer({ }, onCancel: () => { tracking.signMessageFail(manifest); - reject(UserRefusedOnDevice()); + reject(new UserRefusedOnDevice()); }, onError: error => { tracking.signMessageFail(manifest);