aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-31 06:04:21 +0800
committerDan <danjm.com@gmail.com>2017-11-07 03:37:03 +0800
commite5391cf9fdc7dfc25318caaed5dd56270946ddf8 (patch)
tree2f6fb96d9e042ef792af53fb22c188d48e79a335 /ui/app/send-v2.js
parent716bbf67d7180ffe0f59d07484d30231ed5f5e49 (diff)
downloadtangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.tar
tangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.tar.gz
tangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.tar.bz2
tangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.tar.lz
tangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.tar.xz
tangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.tar.zst
tangerine-wallet-browser-e5391cf9fdc7dfc25318caaed5dd56270946ddf8.zip
Allow sending 0 eth or tokens
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 6f3b48be6..951af3d2c 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -422,7 +422,7 @@ SendTransactionScreen.prototype.renderAmountRow = function () {
primaryCurrency,
convertedCurrency,
selectedToken,
- value: amount,
+ value: amount || '0x0',
conversionRate: amountConversionRate,
handleChange: this.handleAmountChange,
validate: this.validateAmount,
@@ -512,7 +512,7 @@ SendTransactionScreen.prototype.renderFooter = function () {
errors: { amount: amountError, to: toError },
} = this.props
- const noErrors = amountError === null && toError === null
+ const noErrors = !amountError && toError === null
const errorClass = noErrors ? '' : '__disabled'
return h('div.send-v2__footer', [
@@ -566,7 +566,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
errors: { amount: amountError, to: toError },
} = this.props
- const noErrors = amountError === null && toError === null
+ const noErrors = !amountError && toError === null
if (!noErrors) {
return