From bec14de2f36cb6ba7da9e1e68c56ae7a8c0d49d7 Mon Sep 17 00:00:00 2001 From: ronaldsg Date: Wed, 18 Dec 2024 14:02:21 -0500 Subject: [PATCH] remove error diff on ledger sign method --- src/common/services/LeatherService.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/common/services/LeatherService.ts b/src/common/services/LeatherService.ts index 40b3448d..c8a2e368 100644 --- a/src/common/services/LeatherService.ts +++ b/src/common/services/LeatherService.ts @@ -9,7 +9,6 @@ import * as constants from '@/common/store/constants'; import { LeatherTx } from '@/pegin/middleware/TxBuilder/LeatherTxBuilder'; import { AppConfig, UserSession, showConnect } from '@stacks/connect'; import { - RpcErrorResponse, LeatherProvider, RpcResponse, } from '@leather.io/rpc'; @@ -104,13 +103,7 @@ export default class LeatherService extends WalletService { .toHex(); resolve({ signedTx: signedPsbt }); }) - .catch((e: typeof RpcErrorResponse) => { - if (e) { - reject(new Error(e)); - } else { - reject(e); - } - }); + .catch(reject); }); }