diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-11-02 02:51:51 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-11-02 02:51:51 +0800 |
commit | 498b30bddcfa16f587a9f62b74a5d9fceb04cb07 (patch) | |
tree | aef4b7be1a4238c09360b593fe6e5fa5fa22cf38 /ui/app/keychains/hd/restore-vault.js | |
parent | db356a181a3fde4ad528c699f6da517053171866 (diff) | |
download | dexon-wallet-498b30bddcfa16f587a9f62b74a5d9fceb04cb07.tar.gz dexon-wallet-498b30bddcfa16f587a9f62b74a5d9fceb04cb07.tar.zst dexon-wallet-498b30bddcfa16f587a9f62b74a5d9fceb04cb07.zip |
Fix seed phrase restore
Diffstat (limited to 'ui/app/keychains/hd/restore-vault.js')
-rw-r--r-- | ui/app/keychains/hd/restore-vault.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/keychains/hd/restore-vault.js b/ui/app/keychains/hd/restore-vault.js index 15690a15..3fa25a2e 100644 --- a/ui/app/keychains/hd/restore-vault.js +++ b/ui/app/keychains/hd/restore-vault.js @@ -66,7 +66,7 @@ RestoreVaultScreen.prototype.render = function () { type: 'password', id: 'password-box-confirm', placeholder: 'Confirm Password', - onKeyPress: this.onMaybeCreate.bind(this), + onKeyPress: this.createOnEnter.bind(this), dataset: { persistentFormId: 'password-confirmation', }, @@ -110,9 +110,9 @@ RestoreVaultScreen.prototype.showInitializeMenu = function () { this.props.dispatch(actions.showInitializeMenu()) } -RestoreVaultScreen.prototype.onMaybeCreate = function (event) { +RestoreVaultScreen.prototype.createOnEnter = function (event) { if (event.key === 'Enter') { - this.restoreVault() + this.createNewVaultAndRestore() } } |