TxnLab / use-wallet

A framework agnostic wallet integration library for Algorand dApps
https://txnlab.gitbook.io/use-wallet
MIT License
82 stars 34 forks source link

fix(kmd): handle empty password correctly in getPassword #318

Closed PatrickDinh closed 6 days ago

PatrickDinh commented 1 week ago

fix(kmd): prompt for password twice when the password is an empty string

When using KMD wallet for localnet, it's common that the password is set to an empty string. In this case, the memoised logic failed to detect the existing password.

To fix this: