aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 8b49f7307..3775603b8 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -372,7 +372,7 @@ SendTransactionScreen.prototype.renderForm = function () {
this.renderGasRow(),
- this.renderMemoRow(),
+ // this.renderMemoRow(),
])
}
@@ -381,9 +381,9 @@ SendTransactionScreen.prototype.renderFooter = function () {
const {
goHome,
clearSend,
- errors: { amount: amountError, to: toError }
+ errors: { amount: amountError, to: toError },
} = this.props
-
+
const noErrors = amountError === null && toError === null
const errorClass = noErrors ? '' : '__disabled'
@@ -395,6 +395,7 @@ SendTransactionScreen.prototype.renderFooter = function () {
},
}, 'Cancel'),
h(`button.send-v2__next-btn${errorClass}`, {
+ onClick: event => this.onSubmit(event),
}, 'Next'),
])
}
@@ -435,8 +436,15 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
selectedToken,
toAccounts,
clearSend,
+ errors: { amount: amountError, to: toError },
} = this.props
+ const noErrors = amountError === null && toError === null
+
+ if (!noErrors) {
+ return
+ }
+
this.addToAddressBookIfNew(to)
const txParams = {