Restore: display red border if invalid seed

This commit is contained in:
rating89us 2020-10-17 18:50:28 +02:00 committed by rating89us
parent cb1f3ad0ce
commit cd3a0f85a6

View File

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