aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-05 07:48:12 +0800
committerDan <danjm.com@gmail.com>2018-04-05 07:48:12 +0800
commit6ecf2c8092e11c9b467dabfad36fb61c6f80e371 (patch)
treefeb68ae88988b730584f7c21d00cbeab4c3a5a8e
parent1153120fe84e9d4cde47a7e416028be0fec3c61c (diff)
downloadtangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar
tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.gz
tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.bz2
tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.lz
tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.xz
tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.tar.zst
tangerine-wallet-browser-6ecf2c8092e11c9b467dabfad36fb61c6f80e371.zip
event object actually passed to this.createKeyringOnEnter in private-key.js
-rw-r--r--ui/app/accounts/import/private-key.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/accounts/import/private-key.js b/ui/app/accounts/import/private-key.js
index 006131bdc..0d2898cda 100644
--- a/ui/app/accounts/import/private-key.js
+++ b/ui/app/accounts/import/private-key.js
@@ -30,6 +30,7 @@ function mapDispatchToProps (dispatch) {
inherits(PrivateKeyImportView, Component)
function PrivateKeyImportView () {
+ this.createKeyringOnEnter = this.createKeyringOnEnter.bind(this)
Component.call(this)
}
@@ -46,7 +47,7 @@ PrivateKeyImportView.prototype.render = function () {
h('input.new-account-import-form__input-password', {
type: 'password',
id: 'private-key-box',
- onKeyPress: () => this.createKeyringOnEnter(),
+ onKeyPress: e => this.createKeyringOnEnter(e),
}),
]),