aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index a65c51d30..848f53f7c 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -67,13 +67,10 @@ function SendTransactionScreen () {
}
this.back = this.back.bind(this)
- this.back = this.back.bind(this)
this.closeTooltip = this.closeTooltip.bind(this)
this.onSubmit = this.onSubmit.bind(this)
- this.onSubmit = this.onSubmit.bind(this)
this.recipientDidChange = this.recipientDidChange.bind(this)
this.setCurrentCurrency = this.setCurrentCurrency.bind(this)
- this.setCurrentCurrency = this.setCurrentCurrency.bind(this)
this.toggleTooltip = this.toggleTooltip.bind(this)
}
@@ -232,13 +229,11 @@ SendTransactionScreen.prototype.render = function () {
onClose: this.closeTooltip,
onFeeChange: ({gasLimit, gasPrice}) => {
this.setState({
- newTx: Object.assign(
- this.state.newTx,
- {
- gas: gasLimit,
- gasPrice,
- }
- ),
+ newTx: {
+ ...this.state.newTx,
+ gas: gasLimit,
+ gasPrice,
+ },
})
}
}),
@@ -287,7 +282,7 @@ SendTransactionScreen.prototype.render = function () {
}
}),
h('div.send-screen-gas-input-customize', {
- onClick: () => this.toggleTooltip.bind(this)(!this.state.tooltipIsOpen),
+ onClick: this.toggleTooltip,
}, [
'Customize'
]),