transactions - lint fixes

feature/default_network_editable
frankiebee 7 years ago
parent 2d7c3c2b00
commit 5494aa4f9c
  1. 2
      app/scripts/controllers/transactions/lib/util.js
  2. 2
      app/scripts/controllers/transactions/tx-state-manager.js

@ -7,7 +7,7 @@ module.exports = {
normalizeTxParams, normalizeTxParams,
validateTxParams, validateTxParams,
validateFrom, validateFrom,
validateRecipient validateRecipient,
} }

@ -92,7 +92,7 @@ module.exports = class TransactionStateManager extends EventEmitter {
// or rejected tx's. // or rejected tx's.
// not tx's that are pending or unapproved // not tx's that are pending or unapproved
if (txCount > txHistoryLimit - 1) { if (txCount > txHistoryLimit - 1) {
let index = transactions.findIndex((metaTx) => { const index = transactions.findIndex((metaTx) => {
return this.getFinalStates().includes(metaTx.status) return this.getFinalStates().includes(metaTx.status)
}) })
if (index !== -1) { if (index !== -1) {

Loading…
Cancel
Save