1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix lint and tests

This commit is contained in:
Dan 2018-03-30 02:19:04 -02:30
parent 893f82491d
commit 2be6f8bae0
2 changed files with 4 additions and 4 deletions

View File

@ -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 })

View File

@ -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 })