aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-08 07:36:26 +0800
committerDan <danjm.com@gmail.com>2017-11-08 07:36:26 +0800
commitc57d504794b6020d42dcdabe08a13ed412450fc1 (patch)
tree99151d2b40844d5e90a4175550a4b37950d6c744 /ui/app/send-v2.js
parent8c6e1232e417f5a2974b5aa1cc479dac4925df63 (diff)
downloadtangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.tar
tangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.tar.gz
tangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.tar.bz2
tangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.tar.lz
tangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.tar.xz
tangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.tar.zst
tangerine-wallet-browser-c57d504794b6020d42dcdabe08a13ed412450fc1.zip
Add currency-input component to correct send amount behaviour and move currency display value state to parent component.
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index bb4c592e8..8c8b97a6d 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -300,6 +300,7 @@ SendTransactionScreen.prototype.handleAmountChange = function (value) {
const amount = value
const { updateSendAmount } = this.props
+ this.validateAmount(amount)
updateSendAmount(amount)
}
@@ -330,7 +331,6 @@ SendTransactionScreen.prototype.setAmountToMax = function () {
updateGasPrice(MIN_GAS_PRICE_HEX)
updateGasLimit(MIN_GAS_LIMIT_HEX)
updateGasTotal(MIN_GAS_TOTAL)
-
updateSendAmount(maxAmount)
}
@@ -393,9 +393,8 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
errors,
amount,
} = this.props
-
return h('div.send-v2__form-row', [
-
+
h('div.send-v2__form-label', [
'Amount:',
this.renderErrorMessage('amount'),
@@ -416,7 +415,6 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
value: amount || '0x0',
conversionRate: amountConversionRate,
handleChange: this.handleAmountChange,
- validate: this.validateAmount,
}),
]),