WizardRestoreWallet1: trim whitespaces from seed

This commit is contained in:
selsta 2022-07-04 03:45:25 +02:00
parent 96cca79b70
commit 0184c3a314
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -50,8 +50,8 @@ Rectangle {
if(wizardController.walletRestoreMode === "keys") {
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
} else if(wizardController.walletRestoreMode === "seed") {
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text);
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text);
seedInput.error = seedInput.text && !Wizard.checkSeed(seedInput.text.trim());
return wizardWalletInput.verify() && seedInput.text && Wizard.checkSeed(seedInput.text.trim());
}
return false;
@ -306,7 +306,7 @@ Rectangle {
switch (wizardController.walletRestoreMode) {
case 'seed':
wizardController.walletOptionsSeed = seedInput.text;
wizardController.walletOptionsSeed = seedInput.text.trim();
wizardController.walletOptionsSeedOffset = seedOffsetCheckbox.checked ? seedOffset.text : "";
break;
default: // walletRestoreMode = keys or qr