Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Ignore meta.deleted for accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Dec 7, 2016
1 parent 21a3cf7 commit f758610
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions js/src/redux/providers/personalActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
});

Expand Down

0 comments on commit f758610

Please sign in to comment.