Merge pull request #3732 from ethcore/jg-duplicate-accounts
Give accounts precedence over address_book entries
This commit is contained in:
@@ -27,7 +27,7 @@ export function personalAccountsInfo (accountsInfo) {
|
||||
|
||||
Object.keys(accountsInfo || {})
|
||||
.map((address) => Object.assign({}, accountsInfo[address], { address }))
|
||||
.filter((account) => !account.meta.deleted)
|
||||
.filter((account) => account.uuid || !account.meta.deleted)
|
||||
.forEach((account) => {
|
||||
if (account.uuid) {
|
||||
accounts[account.address] = account;
|
||||
|
||||
@@ -37,7 +37,7 @@ class IdentityName extends Component {
|
||||
render () {
|
||||
const { address, accountsInfo, tokens, empty, name, shorten, unknown, className } = this.props;
|
||||
const account = accountsInfo[address] || tokens[address];
|
||||
const hasAccount = account && (!account.meta || !account.meta.deleted);
|
||||
const hasAccount = account && (account.uuid || !account.meta || !account.meta.deleted);
|
||||
|
||||
if (!hasAccount && empty) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user