Skip to content

Commit

Permalink
fix transaction sync logic (#10954)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker authored Apr 29, 2021
1 parent 6265799 commit 5928bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ export default class MetamaskController extends EventEmitter {

let { transactions } = this.txController.store.getState();
// delete tx for other accounts that we're not importing
transactions = transactions.filter((tx) => {
transactions = Object.values(transactions).filter((tx) => {
const checksummedTxFrom = toChecksumAddress(tx.txParams.from);
return accounts.hd.includes(checksummedTxFrom);
});
Expand Down

0 comments on commit 5928bc0

Please sign in to comment.