aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/accounts
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/accounts
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/accounts')
-rw-r--r--ui/app/accounts/account-list-item.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js
index 16019c88a..74ecef07f 100644
--- a/ui/app/accounts/account-list-item.js
+++ b/ui/app/accounts/account-list-item.js
@@ -17,6 +17,7 @@ function AccountListItem () {
AccountListItem.prototype.render = function () {
const { identity, selectedAccount, accounts, onShowDetail } = this.props
+ const checksumAddress = identity && identity.address && ethUtil.toChecksumAddress(identity.address)
const isSelected = selectedAccount === identity.address
const account = accounts[identity.address]
const selectedClass = isSelected ? '.selected' : ''
@@ -48,7 +49,7 @@ AccountListItem.prototype.render = function () {
overflow: 'hidden',
textOverflow: 'ellipsis',
},
- }, ethUtil.toChecksumAddress(identity.address)),
+ }, checksumAddress),
h(EthBalance, {
value: account && account.balance,
style: {
@@ -65,7 +66,7 @@ AccountListItem.prototype.render = function () {
},
}, [
h(CopyButton, {
- value: ethUtil.toChecksumAddress(identity.address),
+ value: checksumAddress,
}),
]),
])