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 || {})
|
Object.keys(accountsInfo || {})
|
||||||
.map((address) => Object.assign({}, accountsInfo[address], { address }))
|
.map((address) => Object.assign({}, accountsInfo[address], { address }))
|
||||||
.filter((account) => !account.meta.deleted)
|
|
||||||
.forEach((account) => {
|
.forEach((account) => {
|
||||||
if (account.uuid) {
|
if (account.uuid) {
|
||||||
accounts[account.address] = account;
|
accounts[account.address] = account;
|
||||||
} else if (account.meta.wallet) {
|
} else if (!account.meta.deleted) {
|
||||||
account.wallet = true;
|
if (account.meta.wallet) {
|
||||||
wallets[account.address] = account;
|
account.wallet = true;
|
||||||
} else if (account.meta.contract) {
|
wallets[account.address] = account;
|
||||||
contracts[account.address] = account;
|
} else if (account.meta.contract) {
|
||||||
} else {
|
contracts[account.address] = account;
|
||||||
contacts[account.address] = account;
|
} else {
|
||||||
|
contacts[account.address] = account;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user