1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-19 13:37:13 +01:00

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();
return valid;
} 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;