Skip to content

Commit 4bd8ccb

Browse files
committed
chore: fix implicit operand conversion
Ticket: CAAS-7
1 parent c829563 commit 4bd8ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/sdk-core/src/bitgo/wallet/wallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ export class Wallet implements IWallet {
22002200
PrebuildTransactionResult
22012201
];
22022202
} catch (err) {
2203-
if (err || (err instanceof Error && err.message.includes('unable to decrypt keychain'))) {
2203+
if (err !== null || (err instanceof Error && err.message.includes('unable to decrypt keychain'))) {
22042204
const error: Error & { code?: string } = new Error(
22052205
`unable to decrypt keychain with the given wallet passphrase`
22062206
);

0 commit comments

Comments
 (0)