aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pages
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-11 17:02:02 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-11 17:02:02 +0800
commit8e842a8947997b7ea47cf35d1348788d21f2f467 (patch)
tree76721162db6ac43f1c878812a2397977b80a1359 /ui/app/components/pages
parent78a1cd3314455d6e4e08839a3eea3ec2868f4f59 (diff)
downloadtangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.tar
tangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.tar.gz
tangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.tar.bz2
tangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.tar.lz
tangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.tar.xz
tangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.tar.zst
tangerine-wallet-browser-8e842a8947997b7ea47cf35d1348788d21f2f467.zip
able to add accounts
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r--ui/app/components/pages/create-account/connect-hardware/account-list.js2
-rw-r--r--ui/app/components/pages/create-account/connect-hardware/index.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/pages/create-account/connect-hardware/account-list.js b/ui/app/components/pages/create-account/connect-hardware/account-list.js
index 730f2df34..ac020345a 100644
--- a/ui/app/components/pages/create-account/connect-hardware/account-list.js
+++ b/ui/app/components/pages/create-account/connect-hardware/account-list.js
@@ -11,7 +11,7 @@ class AccountList extends Component {
renderHeader () {
return (
h('div.hw-connect', [
- h('h3.hw-connect__title', {}, this.context.t('selectAnAccount')),
+ h('h3.hw-connect__title', {}, `${this.props.device.toUpperCase()} - ${this.context.t('selectAnAccount')}`),
h('p.hw-connect__msg', {}, this.context.t('selectAnAccountHelp')),
])
)
diff --git a/ui/app/components/pages/create-account/connect-hardware/index.js b/ui/app/components/pages/create-account/connect-hardware/index.js
index 86a4d7257..644742172 100644
--- a/ui/app/components/pages/create-account/connect-hardware/index.js
+++ b/ui/app/components/pages/create-account/connect-hardware/index.js
@@ -128,13 +128,13 @@ class ConnectHardwareForm extends Component {
})
}
- onUnlockAccount = () => {
+ onUnlockAccount = (device) => {
if (this.state.selectedAccount === null) {
this.setState({ error: this.context.t('accountSelectionRequired') })
}
- this.props.unlockHardwareWalletAccount(this.state.selectedAccount, this.state.device)
+ this.props.unlockHardwareWalletAccount(this.state.selectedAccount, device)
.then(_ => {
this.props.history.push(DEFAULT_ROUTE)
}).catch(e => {