Merge pull request #3444 from danjm/i3348-minus-not-a-number

Prevent user from selecting max amount until gas is estimated.
feature/default_network_editable
Dan Finlay 7 years ago committed by GitHub
commit 31e7d9263f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui/app/send-v2.js

@ -396,14 +396,15 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
amount,
setMaxModeTo,
maxModeOn,
gasTotal,
} = this.props
return h('div.send-v2__form-row', [
h('div.send-v2__form-label', [
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