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:
parent
893f82491d
commit
2be6f8bae0
@ -117,7 +117,7 @@ ConfirmSendEther.prototype.componentWillMount = function () {
|
|||||||
updateSendErrors({
|
updateSendErrors({
|
||||||
insufficientFunds: balanceIsSufficient
|
insufficientFunds: balanceIsSufficient
|
||||||
? false
|
? false
|
||||||
: this.props.t('insufficientFunds')
|
: this.context.t('insufficientFunds'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -495,7 +495,7 @@ ConfirmSendEther.prototype.onSubmit = function (event) {
|
|||||||
if (valid && this.verifyGasParams() && balanceIsSufficient) {
|
if (valid && this.verifyGasParams() && balanceIsSufficient) {
|
||||||
this.props.sendTransaction(txMeta, event)
|
this.props.sendTransaction(txMeta, event)
|
||||||
} else if (!balanceIsSufficient) {
|
} else if (!balanceIsSufficient) {
|
||||||
updateSendErrors({ insufficientFunds: this.props.t('insufficientFunds') })
|
updateSendErrors({ insufficientFunds: this.context.t('insufficientFunds') })
|
||||||
} else {
|
} else {
|
||||||
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
|
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
|
||||||
this.setState({ submitting: false })
|
this.setState({ submitting: false })
|
||||||
|
@ -160,7 +160,7 @@ ConfirmSendToken.prototype.componentWillMount = function () {
|
|||||||
updateSendErrors({
|
updateSendErrors({
|
||||||
insufficientFunds: balanceIsSufficient
|
insufficientFunds: balanceIsSufficient
|
||||||
? false
|
? false
|
||||||
: this.props.t('insufficientFunds')
|
: this.context.t('insufficientFunds'),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -495,7 +495,7 @@ ConfirmSendToken.prototype.onSubmit = function (event) {
|
|||||||
if (valid && this.verifyGasParams() && balanceIsSufficient) {
|
if (valid && this.verifyGasParams() && balanceIsSufficient) {
|
||||||
this.props.sendTransaction(txMeta, event)
|
this.props.sendTransaction(txMeta, event)
|
||||||
} else if (!balanceIsSufficient) {
|
} else if (!balanceIsSufficient) {
|
||||||
updateSendErrors({ insufficientFunds: this.props.t('insufficientFunds') })
|
updateSendErrors({ insufficientFunds: this.context.t('insufficientFunds') })
|
||||||
} else {
|
} else {
|
||||||
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
|
updateSendErrors({ invalidGasParams: this.context.t('invalidGasParams') })
|
||||||
this.setState({ submitting: false })
|
this.setState({ submitting: false })
|
||||||
|
Loading…
Reference in New Issue
Block a user