diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-01-29 14:26:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-29 14:26:47 +0800 |
commit | 47b48c0e02b2b9508813abfda0d89a1bbe677694 (patch) | |
tree | e4e07f9508905ff15425bc3664c60f5bb9410b3a /ui/app/accounts | |
parent | 61528bdf088e304150698d95218806d7b4faa56e (diff) | |
parent | 13e20034698ae0477240e88eab9a3483e5daccd6 (diff) | |
download | tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.tar tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.tar.gz tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.tar.bz2 tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.tar.lz tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.tar.xz tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.tar.zst tangerine-wallet-browser-47b48c0e02b2b9508813abfda0d89a1bbe677694.zip |
Merge pull request #1062 from MetaMask/kumavis-refactor3
Kumavis refactor3
Diffstat (limited to 'ui/app/accounts')
-rw-r--r-- | ui/app/accounts/account-list-item.js | 5 |
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, }), ]), ]) |