diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-03-29 05:54:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-29 05:54:04 +0800 |
commit | f2587b7e8033eadd4095b378f2e9953c6919cdb0 (patch) | |
tree | c5a21f787bf60fb6a07c7b2eabbfc703bc835f8c /ui/app/keychains/hd/recover-seed | |
parent | d1733c1f7521d17b0e8acdae5a2be33c1a9bbd5c (diff) | |
parent | a95d96d507b9b20e0457baae9f9d38e26b23d8b3 (diff) | |
download | tangerine-wallet-browser-f2587b7e8033eadd4095b378f2e9953c6919cdb0.tar.gz tangerine-wallet-browser-f2587b7e8033eadd4095b378f2e9953c6919cdb0.tar.zst tangerine-wallet-browser-f2587b7e8033eadd4095b378f2e9953c6919cdb0.zip |
Merge pull request #1273 from MetaMask/i1267-seedfix
Assure that seed words are placed into state tree upon request.
Diffstat (limited to 'ui/app/keychains/hd/recover-seed')
-rw-r--r-- | ui/app/keychains/hd/recover-seed/confirmation.js | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/ui/app/keychains/hd/recover-seed/confirmation.js b/ui/app/keychains/hd/recover-seed/confirmation.js index 56ac461ea..4ccbec9fc 100644 --- a/ui/app/keychains/hd/recover-seed/confirmation.js +++ b/ui/app/keychains/hd/recover-seed/confirmation.js @@ -18,11 +18,8 @@ function mapStateToProps (state) { } } -RevealSeedConfirmation.prototype.confirmationPhrase = 'I understand' - RevealSeedConfirmation.prototype.render = function () { const props = this.props - const state = this.state return ( @@ -64,31 +61,13 @@ RevealSeedConfirmation.prototype.render = function () { }, }), - h(`h4${state && state.confirmationWrong ? '.error' : ''}`, { - style: { - marginTop: '12px', - }, - }, `Enter the phrase "${this.confirmationPhrase}" to proceed.`), - - // confirm confirmation - h('input.large-input.letter-spacey', { - type: 'text', - id: 'confirm-box', - placeholder: this.confirmationPhrase, - onKeyPress: this.checkConfirmation.bind(this), - style: { - width: 260, - marginTop: 16, - }, - }), - h('.flex-row.flex-space-between', { style: { marginTop: 30, width: '50%', }, }, [ -// cancel + // cancel h('button.primary', { onClick: this.goHome.bind(this), }, 'CANCEL'), @@ -134,15 +113,6 @@ RevealSeedConfirmation.prototype.checkConfirmation = function (event) { } RevealSeedConfirmation.prototype.revealSeedWords = function () { - this.setState({ confirmationWrong: false }) - - const confirmBox = document.getElementById('confirm-box') - const confirmation = confirmBox.value - if (confirmation !== this.confirmationPhrase) { - confirmBox.value = '' - return this.setState({ confirmationWrong: true }) - } - var password = document.getElementById('password-box').value this.props.dispatch(actions.requestRevealSeed(password)) } |