From c605c9897d40f8fc2568b63d33cfc018635bcf25 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 29 Aug 2017 16:09:56 -0230 Subject: Minor clean up. --- ui/app/send.js | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'ui/app/send.js') 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 @@ -66,14 +66,11 @@ function SendTransactionScreen () { tooltipIsOpen: false, } - 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' ]), -- cgit v1.2.3