aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-03-07 07:05:25 +0800
committerGitHub <noreply@github.com>2018-03-07 07:05:25 +0800
commit31e7d9263f3210082c90adf3e050771bb30c7c88 (patch)
treead4048329e22c2cd8e810e79c87fc243c96e8ad9
parent303801d2768a264a27a51916e5debf778739ee0c (diff)
parent68604b53dde23eaeb44657153244928627b723ab (diff)
downloadtangerine-wallet-browser-31e7d9263f3210082c90adf3e050771bb30c7c88.tar.gz
tangerine-wallet-browser-31e7d9263f3210082c90adf3e050771bb30c7c88.tar.zst
tangerine-wallet-browser-31e7d9263f3210082c90adf3e050771bb30c7c88.zip
Merge pull request #3444 from danjm/i3348-minus-not-a-number
Prevent user from selecting max amount until gas is estimated.
-rw-r--r--ui/app/send-v2.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 1d67150e3..3667e9d73 100644
--- a/ui/app/send-v2.js
+++ b/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)