Prevent user from selecting max amount until there is an estimated gas total.

feature/default_network_editable
Dan 7 years ago
parent 1bd18cebd7
commit 68604b53dd
  1. 3
      ui/app/send-v2.js

@ -396,6 +396,7 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
amount,
setMaxModeTo,
maxModeOn,
gasTotal,
} = this.props
return h('div.send-v2__form-row', [
@ -403,7 +404,7 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
h('div.send-v2__form-label', [
'Amount:',
this.renderErrorMessage('amount'),
!errors.amount && h('div.send-v2__amount-max', {
!errors.amount && gasTotal && h('div.send-v2__amount-max', {
onClick: (event) => {
event.preventDefault()
setMaxModeTo(true)

Loading…
Cancel
Save