aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js15
-rw-r--r--ui/app/components/pending-tx/confirm-send-token.js15
-rw-r--r--ui/app/components/send/currency-display.js2
3 files changed, 19 insertions, 13 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index b4d955b80..1264da153 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/ui/app/components/pending-tx/confirm-send-ether.js
@@ -43,12 +43,15 @@ function mapDispatchToProps (dispatch) {
to,
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.updateSend({
+ gasLimit,
+ gasPrice,
+ gasTotal: null,
+ to,
+ amount,
+ errors: { to: null, amount: null },
+ editingTransactionId: id,
+ }))
dispatch(actions.showSendPage())
},
cancelTransaction: ({ id }) => dispatch(actions.cancelTx({ id })),
diff --git a/ui/app/components/pending-tx/confirm-send-token.js b/ui/app/components/pending-tx/confirm-send-token.js
index aab45f2a4..cc2df8299 100644
--- a/ui/app/components/pending-tx/confirm-send-token.js
+++ b/ui/app/components/pending-tx/confirm-send-token.js
@@ -77,13 +77,16 @@ function mapDispatchToProps (dispatch, ownProps) {
gasPrice,
to,
} = 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.setSelectedToken(address))
+ dispatch(actions.updateSend({
+ gasLimit,
+ gasPrice,
+ gasTotal: null,
+ to,
+ amount,
+ errors: { to: null, amount: null },
+ editingTransactionId: id,
+ }))
dispatch(actions.showSendTokenPage())
},
}
diff --git a/ui/app/components/send/currency-display.js b/ui/app/components/send/currency-display.js
index 5bf8d6aa0..819fee0a0 100644
--- a/ui/app/components/send/currency-display.js
+++ b/ui/app/components/send/currency-display.js
@@ -97,7 +97,7 @@ CurrencyDisplay.prototype.render = function () {
onInputChange: newValue => {
handleChange(this.getAmount(newValue))
},
- inputRef: input => { this.currencyInput = input; },
+ inputRef: input => { this.currencyInput = input },
}),
h('span.currency-display__currency-symbol', primaryCurrency),