From 1a4726871d979e86ef45cc8bad27ecc5d1561a92 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Tue, 2 May 2023 11:16:43 +0200 Subject: [PATCH] Log raw error --- components/forms/TransactionSigning.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/forms/TransactionSigning.tsx b/components/forms/TransactionSigning.tsx index 027c11e..281f591 100644 --- a/components/forms/TransactionSigning.tsx +++ b/components/forms/TransactionSigning.tsx @@ -71,9 +71,8 @@ const TransactionSigning = (props: Props) => { setWalletType("Keplr"); setConnectError(""); } catch (e) { - const error = getConnectError(e); - console.error(error); - setConnectError(error); + console.error(e); + setConnectError(getConnectError(e)); } finally { setLoading((newLoading) => ({ ...newLoading, keplr: false })); } @@ -119,9 +118,8 @@ const TransactionSigning = (props: Props) => { setWalletType("Ledger"); setConnectError(""); } catch (e) { - const error = getConnectError(e); - console.error(error); - setConnectError(error); + console.error(e); + setConnectError(getConnectError(e)); } finally { setLoading((newLoading) => ({ ...newLoading, ledger: false })); }