Skip to content

Commit

Permalink
Handle Leather error on signing
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldsg20 committed Apr 3, 2024
1 parent ae6b49b commit ebc3264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/services/LeatherService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ export default class LeatherService extends WalletService {
resolve({ signedTx: signedPsbt });
})
.catch((e) => {
reject(e);
if (e.error.code) {
reject(new Error(e.error.message));
} else {
reject(e);
}
});
});
}
Expand Down

0 comments on commit ebc3264

Please sign in to comment.