From cd3a0f85a68e105929484a3c6f3d35d518fa83c6 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Sat, 17 Oct 2020 18:50:28 +0200 Subject: [PATCH] Restore: display red border if invalid seed --- wizard/WizardRestoreWallet1.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wizard/WizardRestoreWallet1.qml b/wizard/WizardRestoreWallet1.qml index 838e2d00..ca85f45d 100644 --- a/wizard/WizardRestoreWallet1.qml +++ b/wizard/WizardRestoreWallet1.qml @@ -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;