Ignore meta.deleted for accounts
This commit is contained in:
parent
21a3cf7b65
commit
f7586109df
@ -27,17 +27,18 @@ export function personalAccountsInfo (accountsInfo) {
|
||||
|
||||
Object.keys(accountsInfo || {})
|
||||
.map((address) => Object.assign({}, accountsInfo[address], { address }))
|
||||
.filter((account) => !account.meta.deleted)
|
||||
.forEach((account) => {
|
||||
if (account.uuid) {
|
||||
accounts[account.address] = account;
|
||||
} else if (account.meta.wallet) {
|
||||
account.wallet = true;
|
||||
wallets[account.address] = account;
|
||||
} else if (account.meta.contract) {
|
||||
contracts[account.address] = account;
|
||||
} else {
|
||||
contacts[account.address] = account;
|
||||
} else if (!account.meta.deleted) {
|
||||
if (account.meta.wallet) {
|
||||
account.wallet = true;
|
||||
wallets[account.address] = account;
|
||||
} else if (account.meta.contract) {
|
||||
contracts[account.address] = account;
|
||||
} else {
|
||||
contacts[account.address] = account;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user