diff options
author | Dan <danjm.com@gmail.com> | 2017-11-08 09:17:14 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2017-11-08 09:17:14 +0800 |
commit | c156c85eaa064b971ce0202df0bb1681eb0e22dd (patch) | |
tree | 81695898875f9e607bd34ce47fdfc4a25014d3fa /ui/app/send-v2.js | |
parent | da2e9b9765ca32e7439a2a5687e6c3d8ca8bb63c (diff) | |
download | tangerine-wallet-browser-c156c85eaa064b971ce0202df0bb1681eb0e22dd.tar.gz 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.js | 8 |
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) } |