Skip to content

Commit

Permalink
fix(api): sign transaction error message (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenibir authored Nov 24, 2023
1 parent 941e95a commit ba7a372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boot/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const signTransaction = async function (actions, options = {}) {
transactionId = await this.$lightWallet.sendTransaction(actions)
}
} catch (e) {
error = this.$type === 'inApp' ? e.message : e.cause.message
error = this.$type === 'inApp' ? e?.message : e?.cause.message
console.error(e) // eslint-disable-line no-console
console.error(error) // eslint-disable-line no-console
console.error(actions) // eslint-disable-line no-console
Expand Down

0 comments on commit ba7a372

Please sign in to comment.