fix linting errors

feature/default_network_editable
brunobar79 6 years ago
parent bea1cf3f3c
commit 6886429f0b
  1. 2
      app/scripts/metamask-controller.js
  2. 2
      old-ui/app/components/transaction-list-item.js
  3. 3
      ui/app/components/qr-scanner/qr-scanner.component.js
  4. 1
      ui/app/components/send/send-content/send-to-row/send-to-row.component.js

@ -653,7 +653,7 @@ module.exports = class MetamaskController extends EventEmitter {
const { identities } = this.preferencesController.store.getState() const { identities } = this.preferencesController.store.getState()
return { ...keyState, identities } return { ...keyState, identities }
} }
// //

@ -40,7 +40,7 @@ TransactionListItem.prototype.showRetryButton = function () {
const currentNonce = txParams.nonce const currentNonce = txParams.nonce
const currentNonceTxs = transactions.filter(tx => tx.txParams.nonce === currentNonce) const currentNonceTxs = transactions.filter(tx => tx.txParams.nonce === currentNonce)
const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted') const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted')
const currentSubmittedTxs = transactions.filter(tx => tx.status === 'submitted') const currentSubmittedTxs = transactions.filter(tx => tx.status === 'submitted')
const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[0] const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[0]
const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce && const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce &&
lastSubmittedTxWithCurrentNonce.id === transaction.id lastSubmittedTxWithCurrentNonce.id === transaction.id

@ -1,9 +1,10 @@
import React, { Component } from 'react' import React, { Component } from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import {connect} from 'react-redux' import {connect} from 'react-redux'
import adapter from 'webrtc-adapter' // eslint-disable-line import/no-nodejs-modules, no-unused-vars
import { BrowserQRCodeReader } from '@zxing/library'
import { hideQrScanner, qrCodeDetected} from '../../actions' import { hideQrScanner, qrCodeDetected} from '../../actions'
import Spinner from '../spinner' import Spinner from '../spinner'
import { BrowserQRCodeReader } from '@zxing/library'
class QrScanner extends Component { class QrScanner extends Component {
static propTypes = { static propTypes = {

@ -3,7 +3,6 @@ import PropTypes from 'prop-types'
import SendRowWrapper from '../send-row-wrapper/' import SendRowWrapper from '../send-row-wrapper/'
import EnsInput from '../../../ens-input' import EnsInput from '../../../ens-input'
import { getToErrorObject } from './send-to-row.utils.js' import { getToErrorObject } from './send-to-row.utils.js'
import adapter from 'webrtc-adapter'
export default class SendToRow extends Component { export default class SendToRow extends Component {

Loading…
Cancel
Save