Lint fixes.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent bf4043c59b
commit 5fe3c5aae6
  1. 3
      ui/app/components/pending-tx/confirm-send-token.js
  2. 1
      ui/app/components/send/send-v2-container.js
  3. 2
      ui/app/conf-tx.js
  4. 2
      ui/app/send-v2.js

@ -2,7 +2,6 @@ const Component = require('react').Component
const { connect } = require('react-redux')
const h = require('react-hyperscript')
const inherits = require('util').inherits
const ethAbi = require('ethereumjs-abi')
const tokenAbi = require('human-standard-token-abi')
const abiDecoder = require('abi-decoder')
abiDecoder.addABI(tokenAbi)
@ -415,7 +414,7 @@ ConfirmSendToken.prototype.onSubmit = function (event) {
ConfirmSendToken.prototype.cancel = function (event, txMeta) {
event.preventDefault()
const { send, cancelTransaction } = this.props
const { cancelTransaction } = this.props
cancelTransaction(txMeta)
}

@ -79,7 +79,6 @@ function mapDispatchToProps (dispatch) {
updateSendErrors: newError => dispatch(actions.updateSendErrors(newError)),
goHome: () => dispatch(actions.goHome()),
clearSend: () => dispatch(actions.clearSend()),
backToConfirmScreen: editingTransactionId => dispatch(actions.showConfTxPage({ id: editingTransactionId })),
setMaxModeTo: bool => dispatch(actions.setMaxModeTo(bool)),
}
}

@ -115,7 +115,7 @@ function currentTxView (opts) {
log.info('rendering current tx view')
const { txData } = opts
const { txParams, msgParams } = txData
console.log(`22222 currentTxView txData`, txData);
if (txParams) {
log.debug('txParams detected, rendering pending tx')
return h(PendingTx, opts)

@ -608,8 +608,6 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
selectedToken,
editingTransactionId,
errors: { amount: amountError, to: toError },
backToConfirmScreen,
unapprovedTxs,
} = this.props
const noErrors = !amountError && toError === null

Loading…
Cancel
Save