Fix lint and tests

feature/default_network_editable
Dan 7 years ago
parent 893f82491d
commit 2be6f8bae0
  1. 4
      ui/app/components/pending-tx/confirm-send-ether.js
  2. 4
      ui/app/components/pending-tx/confirm-send-token.js

@ -117,7 +117,7 @@ ConfirmSendEther.prototype.componentWillMount = function () {
updateSendErrors({
insufficientFunds: balanceIsSufficient
? false
: this.props.t('insufficientFunds')
: this.context.t('insufficientFunds'),
})
}
@ -495,7 +495,7 @@ ConfirmSendEther.prototype.onSubmit = function (event) {
if (valid && this.verifyGasParams() && balanceIsSufficient) {
this.props.sendTransaction(txMeta, event)
} else if (!balanceIsSufficient) {
updateSendErrors({ insufficientFunds: this.props.t('insufficientFunds') })
updateSendErrors({ insufficientFunds: this.context.t('insufficientFunds') })
} else {
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
this.setState({ submitting: false })

@ -160,7 +160,7 @@ ConfirmSendToken.prototype.componentWillMount = function () {
updateSendErrors({
insufficientFunds: balanceIsSufficient
? false
: this.props.t('insufficientFunds')
: this.context.t('insufficientFunds'),
})
}
@ -495,7 +495,7 @@ ConfirmSendToken.prototype.onSubmit = function (event) {
if (valid && this.verifyGasParams() && balanceIsSufficient) {
this.props.sendTransaction(txMeta, event)
} else if (!balanceIsSufficient) {
updateSendErrors({ insufficientFunds: this.props.t('insufficientFunds') })
updateSendErrors({ insufficientFunds: this.context.t('insufficientFunds') })
} else {
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
this.setState({ submitting: false })

Loading…
Cancel
Save