aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-06 10:42:06 +0800
committerDan <danjm.com@gmail.com>2018-03-06 10:42:06 +0800
commit68604b53dde23eaeb44657153244928627b723ab (patch)
treecdd09fcd7f41b1c78fe377e25d5717f28978cce2 /ui
parent1bd18cebd7e08edbbcf35407b962e71dcd2c3399 (diff)
downloadtangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.tar
tangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.tar.gz
tangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.tar.bz2
tangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.tar.lz
tangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.tar.xz
tangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.tar.zst
tangerine-wallet-browser-68604b53dde23eaeb44657153244928627b723ab.zip
Prevent user from selecting max amount until there is an estimated gas total.
Diffstat (limited to 'ui')
-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)