|
|
|
@ -118,6 +118,11 @@ ConfirmSendEther.prototype.updateComponentSendErrors = function (prevProps) { |
|
|
|
|
updateSendErrors, |
|
|
|
|
balance, |
|
|
|
|
conversionRate, |
|
|
|
|
send: { |
|
|
|
|
errors: { |
|
|
|
|
simulationFails, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
} = this.props |
|
|
|
|
const txMeta = this.gatherTxMeta() |
|
|
|
|
|
|
|
|
@ -132,6 +137,14 @@ ConfirmSendEther.prototype.updateComponentSendErrors = function (prevProps) { |
|
|
|
|
insufficientFunds: balanceIsSufficient ? false : this.context.t('insufficientFunds'), |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const shouldUpdateSimulationSendError = Boolean(txMeta.simulationFails) !== Boolean(simulationFails) |
|
|
|
|
|
|
|
|
|
if (shouldUpdateSimulationSendError) { |
|
|
|
|
updateSendErrors({ |
|
|
|
|
simulationFails: !txMeta.simulationFails ? false : this.context.t('transactionError'), |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ConfirmSendEther.prototype.componentWillMount = function () { |
|
|
|
@ -478,8 +491,10 @@ ConfirmSendEther.prototype.render = function () { |
|
|
|
|
]), |
|
|
|
|
|
|
|
|
|
h('form#pending-tx-form', { |
|
|
|
|
className: 'confirm-screen-form', |
|
|
|
|
onSubmit: this.onSubmit, |
|
|
|
|
}, [ |
|
|
|
|
this.renderErrorMessage('simulationFails'), |
|
|
|
|
h('.page-container__footer', [ |
|
|
|
|
// Cancel Button
|
|
|
|
|
h('button.btn-cancel.page-container__footer-button.allcaps', { |
|
|
|
|