aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-11-09 03:18:27 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-11-15 08:18:00 +0800
commit0a91671ff69957596abbcffb7d20c89f144d7a69 (patch)
tree63ee87b35d472b7f68cff959527ef0e9ed14f050 /ui/app/components/pending-tx
parent34ca7290c593d6fb27faa98a660c8c0bca7e1457 (diff)
downloadtangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar
tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.gz
tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.bz2
tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.lz
tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.xz
tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.tar.zst
tangerine-wallet-browser-0a91671ff69957596abbcffb7d20c89f144d7a69.zip
Fix lint errors.
Diffstat (limited to 'ui/app/components/pending-tx')
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js19
1 files changed, 9 insertions, 10 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index 8b5801aec..b4d955b80 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/ui/app/components/pending-tx/confirm-send-ether.js
@@ -40,16 +40,15 @@ function mapDispatchToProps (dispatch) {
const {
gas: gasLimit,
gasPrice,
- from,
to,
- value: amount
+ value: amount,
} = txParams
dispatch(actions.editTx(id))
- dispatch(actions.updateGasLimit(gasLimit)),
- dispatch(actions.updateGasPrice(gasPrice)),
- dispatch(actions.updateSendTo(to)),
- dispatch(actions.updateSendAmount(amount)),
- dispatch(actions.updateSendErrors({ to: null, amount: null })),
+ dispatch(actions.updateGasLimit(gasLimit))
+ dispatch(actions.updateGasPrice(gasPrice))
+ dispatch(actions.updateSendTo(to))
+ dispatch(actions.updateSendAmount(amount))
+ dispatch(actions.updateSendErrors({ to: null, amount: null }))
dispatch(actions.showSendPage())
},
cancelTransaction: ({ id }) => dispatch(actions.cancelTx({ id })),
@@ -176,7 +175,7 @@ ConfirmSendEther.prototype.getData = function () {
}
ConfirmSendEther.prototype.render = function () {
- const { editTransaction, selectedAddress, currentCurrency, clearSend } = this.props
+ const { editTransaction, currentCurrency, clearSend } = this.props
const txMeta = this.gatherTxMeta()
const txParams = txMeta.txParams || {}
@@ -441,7 +440,7 @@ ConfirmSendEther.prototype.getFormEl = function () {
ConfirmSendEther.prototype.gatherTxMeta = function () {
const props = this.props
const state = this.state
- let txData = clone(state.txData) || clone(props.txData)
+ const txData = clone(state.txData) || clone(props.txData)
if (props.send.editingTransactionId) {
const {
@@ -450,7 +449,7 @@ ConfirmSendEther.prototype.gatherTxMeta = function () {
amount: value,
gasLimit: gas,
gasPrice,
- }
+ },
} = props
const { txParams: { from, to } } = txData
txData.txParams = {