Skip to content

Commit

Permalink
Merge pull request #100 from mintlayer/dev
Browse files Browse the repository at this point in the history
Fix: add wallet if incorrect pass
  • Loading branch information
owlsua authored Jan 19, 2024
2 parents 180fa46 + 0a9ed2b commit 4d4d8d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/composed/AddWallet/AddWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const AddWallet = ({
}

const connectWalletHandle = async (id, walletType, mnemonic) => {
if (!pass) {
//TODO: refactor this
const unlockedAccount = await Account.unlockAccount(id, pass)
if (!pass || !unlockedAccount) {
setPassPristinity(false)
setPassValidity(false)
setPassErrorMessage('Password must be set.')
Expand Down

0 comments on commit 4d4d8d4

Please sign in to comment.