diff --git a/packages/use-wallet/src/wallets/kmd.ts b/packages/use-wallet/src/wallets/kmd.ts index 6db0b4d3..4f29b43e 100644 --- a/packages/use-wallet/src/wallets/kmd.ts +++ b/packages/use-wallet/src/wallets/kmd.ts @@ -60,7 +60,7 @@ export class KmdWallet extends BaseWallet { private options: KmdConstructor private walletName: string private walletId: string = '' - private password: string = '' + private password: string | null = null protected store: Store @@ -302,7 +302,7 @@ export class KmdWallet extends BaseWallet { } private getPassword(): string { - if (this.password) { + if (this.password !== null) { return this.password } const password = prompt('KMD password') || ''