aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/account-detail.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-01-29 11:19:03 +0800
committerkumavis <aaron@kumavis.me>2017-01-29 11:19:03 +0800
commit4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6 (patch)
treea6ce8c9068219f3694b6d9a686d1c892cf16be33 /ui/app/account-detail.js
parente9cdbf4f89085cc6c31991416eaac7ca91f9c1d4 (diff)
downloadtangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.tar
tangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.tar.gz
tangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.tar.bz2
tangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.tar.lz
tangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.tar.xz
tangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.tar.zst
tangerine-wallet-browser-4dd6ba9c1b6704dafcf9d10e1db02a3bb3071cb6.zip
migration 5 - move keyring controller state to substate
Diffstat (limited to 'ui/app/account-detail.js')
-rw-r--r--ui/app/account-detail.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js
index 387a1720a..0bcfbcaab 100644
--- a/ui/app/account-detail.js
+++ b/ui/app/account-detail.js
@@ -41,6 +41,7 @@ function AccountDetailScreen () {
AccountDetailScreen.prototype.render = function () {
var props = this.props
var selected = props.address || Object.keys(props.accounts)[0]
+ var checksumAddress = selected && ethUtil.toChecksumAddress(selected)
var identity = props.identities[selected]
var account = props.accounts[selected]
const { network } = props
@@ -116,7 +117,7 @@ AccountDetailScreen.prototype.render = function () {
marginBottom: '15px',
color: '#AEAEAE',
},
- }, ethUtil.toChecksumAddress(selected)),
+ }, checksumAddress),
// copy and export
@@ -129,7 +130,7 @@ AccountDetailScreen.prototype.render = function () {
h(AccountInfoLink, { selected, network }),
h(CopyButton, {
- value: ethUtil.toChecksumAddress(selected),
+ value: checksumAddress,
}),
h(Tooltip, {