1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #4822 from whymarrh/show-more-address

Show first four characters of account after 0x
This commit is contained in:
Whymarrh Whitby 2018-07-18 15:44:00 -02:30 committed by GitHub
commit 13804d61b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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' } }),
]),
]),