aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/dropdowns
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-18 03:57:55 +0800
committerbitpshr <mail@bitpshr.net>2018-04-18 21:47:05 +0800
commitcce123c30e9562e01971edf9ae11b89cf91c7089 (patch)
tree840338ca0307b67e2480d485e761a9b63ef163d4 /ui/app/components/dropdowns
parent7b70804aa0d74120098a4bcb2c375d29080e8368 (diff)
downloadtangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.tar
tangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.tar.gz
tangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.tar.bz2
tangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.tar.lz
tangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.tar.xz
tangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.tar.zst
tangerine-wallet-browser-cce123c30e9562e01971edf9ae11b89cf91c7089.zip
Show checksummed addresses throughout the UI
Diffstat (limited to 'ui/app/components/dropdowns')
-rw-r--r--ui/app/components/dropdowns/components/account-dropdowns.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/app/components/dropdowns/components/account-dropdowns.js b/ui/app/components/dropdowns/components/account-dropdowns.js
index a133f0e29..179b6617f 100644
--- a/ui/app/components/dropdowns/components/account-dropdowns.js
+++ b/ui/app/components/dropdowns/components/account-dropdowns.js
@@ -7,7 +7,7 @@ const connect = require('react-redux').connect
const Dropdown = require('./dropdown').Dropdown
const DropdownMenuItem = require('./dropdown').DropdownMenuItem
const Identicon = require('../../identicon')
-const ethUtil = require('ethereumjs-util')
+const { checksumAddress } = require('../../../util')
const copyToClipboard = require('copy-to-clipboard')
const { formatBalance } = require('../../../util')
@@ -311,8 +311,7 @@ class AccountDropdowns extends Component {
closeMenu: () => {},
onClick: () => {
const { selected } = this.props
- const checkSumAddress = selected && ethUtil.toChecksumAddress(selected)
- copyToClipboard(checkSumAddress)
+ copyToClipboard(checksumAddress(selected))
},
style: Object.assign(
dropdownMenuItemStyle,