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