From ba7a3727d3372d226d7868e0c33f7a8d4882bfa6 Mon Sep 17 00:00:00 2001 From: Evgeni B Date: Fri, 24 Nov 2023 16:50:27 +0300 Subject: [PATCH] fix(api): sign transaction error message (#2544) --- src/boot/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/api.js b/src/boot/api.js index 1ec38a8cc..9c79c721a 100644 --- a/src/boot/api.js +++ b/src/boot/api.js @@ -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