diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-19 02:14:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 02:14:00 +0800 |
commit | 13804d61b4772a67f31a0cd08dd8c0869fdf1f68 (patch) | |
tree | 0f50837a61e818b315106d8fdad42994299b41d0 | |
parent | 76ac6bbb30387a7e6314e120978713f4b3cf5a9c (diff) | |
parent | 71d64e74a5c0707431d8aeee980472830a642adb (diff) | |
download | tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.tar tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.tar.gz tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.tar.bz2 tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.tar.lz tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.tar.xz tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.tar.zst tangerine-wallet-browser-13804d61b4772a67f31a0cd08dd8c0869fdf1f68.zip |
Merge pull request #4822 from whymarrh/show-more-address
Show first four characters of account after 0x
-rw-r--r-- | ui/app/components/selected-account/selected-account.component.js | 4 | ||||
-rw-r--r-- | ui/app/components/wallet-view.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/selected-account/selected-account.component.js b/ui/app/components/selected-account/selected-account.component.js index 3386a4196..79f0cb93a 100644 --- a/ui/app/components/selected-account/selected-account.component.js +++ b/ui/app/components/selected-account/selected-account.component.js @@ -5,11 +5,11 @@ import copyToClipboard from 'copy-to-clipboard' const Tooltip = require('../tooltip-v2.js') const addressStripper = (address = '') => { - if (address.length < 4) { + if (address.length < 11) { return address } - return `${address.slice(0, 4)}...${address.slice(-4)}` + return `${address.slice(0, 6)}...${address.slice(-4)}` } class SelectedAccount extends Component { diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index da142fad8..20c2be0f1 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -175,7 +175,7 @@ WalletView.prototype.render = function () { this.setState({ copyToClipboardPressed: false }) }, }, [ - `${checksummedAddress.slice(0, 4)}...${checksummedAddress.slice(-4)}`, + `${checksummedAddress.slice(0, 6)}...${checksummedAddress.slice(-4)}`, h('i.fa.fa-clipboard', { style: { marginLeft: '8px' } }), ]), ]), |