Ignore meta.deleted for accounts

This commit is contained in:
Jaco Greeff 2016-12-07 11:48:08 +01:00
parent 21a3cf7b65
commit f7586109df

View File

@ -27,11 +27,11 @@ 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) {
} else if (!account.meta.deleted) {
if (account.meta.wallet) {
account.wallet = true;
wallets[account.address] = account;
} else if (account.meta.contract) {
@ -39,6 +39,7 @@ export function personalAccountsInfo (accountsInfo) {
} else {
contacts[account.address] = account;
}
}
});
return (dispatch) => {