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