Skip to content

Commit

Permalink
remove error diff on ledger sign method
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldsg20 committed Dec 19, 2024
1 parent 803273d commit bec14de
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/common/services/LeatherService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
});
}

Expand Down

0 comments on commit bec14de

Please sign in to comment.