aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/app/send-v2.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 0086faa1f..7fa8ca18a 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -379,8 +379,9 @@ SendTransactionScreen.prototype.renderFooter = function () {
clearSend,
errors: { amount: amountError, to: toError }
} = this.props
-
+
const noErrors = amountError === null && toError === null
+ const errorClass = noErrors ? '' : '__disabled'
return h('div.send-v2__footer', [
h('button.send-v2__cancel-btn', {
@@ -389,13 +390,7 @@ SendTransactionScreen.prototype.renderFooter = function () {
goHome()
},
}, 'Cancel'),
- h(`button`, {
- className: classnames({
- 'send-v2__next-btn': noErrors,
- 'send-v2__next-btn__disabled': !noErrors,
- }),
- disabled: !noErrors,
- onClick: event => this.onSubmit(event),
+ h(`button.send-v2__next-btn${errorClass}`, {
}, 'Next'),
])
}