Skip to content

Commit

Permalink
Sort txes by timestamp of creation instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Nov 26, 2019
1 parent 47bd579 commit 81f0afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/controllers/transactions/tx-state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class TransactionStateManager extends EventEmitter {
}
}
const newTxIndex = transactions
.findIndex((currentTxMeta) => currentTxMeta.id > txMeta.id)
.findIndex((currentTxMeta) => currentTxMeta.time > txMeta.time)

newTxIndex === -1
? transactions.push(txMeta)
Expand Down

0 comments on commit 81f0afe

Please sign in to comment.