Merge pull request #3169

cd3a0f85 Restore: display red border if invalid seed (rating89us)
This commit is contained in:
Alexander Blair 2020-12-01 14:25:01 -08:00
commit f6196d48ab
No known key found for this signature in database
GPG key ID: C64552D877C32479

View file

@ -50,10 +50,8 @@ Rectangle {
if(wizardController.walletRestoreMode === "keys") {
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
} else if(wizardController.walletRestoreMode === "seed") {
valid = wizardWalletInput.verify();
if(!valid) return false;
valid = Wizard.checkSeed(seedInput.text);
return valid;
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text);
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text);
}
return false;