aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-08 09:17:14 +0800
committerDan <danjm.com@gmail.com>2017-11-08 09:17:14 +0800
commitc156c85eaa064b971ce0202df0bb1681eb0e22dd (patch)
tree81695898875f9e607bd34ce47fdfc4a25014d3fa /ui/app/send-v2.js
parentda2e9b9765ca32e7439a2a5687e6c3d8ca8bb63c (diff)
downloadtangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar
tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar.gz
tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar.bz2
tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar.lz
tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar.xz
tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar.zst
tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.zip
Fix amount max for sending token.
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 8c8b97a6d..ffc9accc5 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -328,9 +328,11 @@ SendTransactionScreen.prototype.setAmountToMax = function () {
)
updateSendErrors({ amount: null })
- updateGasPrice(MIN_GAS_PRICE_HEX)
- updateGasLimit(MIN_GAS_LIMIT_HEX)
- updateGasTotal(MIN_GAS_TOTAL)
+ if (!selectedToken) {
+ updateGasPrice(MIN_GAS_PRICE_HEX)
+ updateGasLimit(MIN_GAS_LIMIT_HEX)
+ updateGasTotal(MIN_GAS_TOTAL)
+ }
updateSendAmount(maxAmount)
}