diff options
author | Dan <danjm.com@gmail.com> | 2017-10-19 03:23:35 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2017-10-20 02:56:46 +0800 |
commit | 59015cccef72210f828b344aaedde9b8dd31be3b (patch) | |
tree | 2443b2b73639e8555cc1aca4cd757030080883e1 /ui/app/send-v2.js | |
parent | bd11e60b8c128dd69ba1bcf58d25fa9323d91a33 (diff) | |
download | tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.gz tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.tar.zst tangerine-wallet-browser-59015cccef72210f828b344aaedde9b8dd31be3b.zip |
Min and default gas price, limit, total; comments out code for gas slider.
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r-- | ui/app/send-v2.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js index c0a03690a..8915350a3 100644 --- a/ui/app/send-v2.js +++ b/ui/app/send-v2.js @@ -10,6 +10,8 @@ const CurrencyDisplay = require('./components/send/currency-display') const MemoTextArea = require('./components/send/memo-textarea') const GasFeeDisplay = require('./components/send/gas-fee-display-v2') +const { MIN_GAS_TOTAL } = require('./components/send/send-constants') + const { showModal } = require('./actions') const { @@ -135,9 +137,8 @@ SendTransactionScreen.prototype.renderHeader = function () { SendTransactionScreen.prototype.renderErrorMessage = function(errorType) { const { errors } = this.props - console.log(`! errors`, errors); const errorMessage = errors[errorType]; - console.log(`errorMessage`, errorMessage); + return errorMessage ? h('div.send-v2__error', [ errorMessage ] ) : null @@ -309,7 +310,7 @@ SendTransactionScreen.prototype.renderGasRow = function () { const { conversionRate, showCustomizeGasModal, - gasTotal, + gasTotal = MIN_GAS_TOTAL, } = this.props return h('div.send-v2__form-row', [ |