diff --git a/wizard/WizardRecoveryWallet.qml b/wizard/WizardRecoveryWallet.qml index 70bf3d78..236c59a1 100644 --- a/wizard/WizardRecoveryWallet.qml +++ b/wizard/WizardRecoveryWallet.qml @@ -43,6 +43,8 @@ Item { function onPageOpened(settingsObject) { checkNextButton(); + // Empty seedText when restoring multiple times in one session + uiItem.wordsTextItem.memoText = ""; } function checkNextButton() { @@ -54,7 +56,8 @@ Item { settingsObject['account_name'] = uiItem.accountNameText settingsObject['words'] = Utils.lineBreaksToSpaces(uiItem.wordsTextItem.memoText) settingsObject['wallet_path'] = uiItem.walletPath - settingsObject['restore_height'] = parseInt(uiItem.restoreHeight) + var restoreHeight = parseInt(uiItem.restoreHeight); + settingsObject['restore_height'] = isNaN(restoreHeight)? 0 : restoreHeight var walletFullPath = wizard.createWalletPath(uiItem.walletPath,uiItem.accountNameText); if(wizard.walletExists(walletFullPath)){ return false