aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 897caf16e..5eb90143e 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -29,6 +29,7 @@ const {
isTokenBalanceSufficient,
} = require('./components/send/send-utils')
const { isValidAddress } = require('./util')
+const { CONFIRM_TRANSACTION_ROUTE } = require('./routes')
module.exports = SendTransactionScreen
@@ -527,10 +528,10 @@ SendTransactionScreen.prototype.renderForm = function () {
SendTransactionScreen.prototype.renderFooter = function () {
const {
- goHome,
clearSend,
gasTotal,
errors: { amount: amountError, to: toError },
+ history,
} = this.props
const noErrors = !amountError && toError === null
@@ -539,7 +540,7 @@ SendTransactionScreen.prototype.renderFooter = function () {
h('button.btn-cancel.send-v2__cancel-btn', {
onClick: () => {
clearSend()
- goHome()
+ history.goBack()
},
}, 'Cancel'),
h('button.btn-clear.send-v2__next-btn', {
@@ -617,7 +618,7 @@ SendTransactionScreen.prototype.getEditedTx = function () {
SendTransactionScreen.prototype.onSubmit = function (event) {
event.preventDefault()
const {
- from: {address: from},
+ from: { address: from },
to,
amount,
gasLimit: gas,
@@ -640,7 +641,6 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
if (editingTransactionId) {
const editedTx = this.getEditedTx()
-
updateTx(editedTx)
} else {
@@ -659,5 +659,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
selectedToken
? signTokenTx(selectedToken.address, to, amount, txParams)
: signTx(txParams)
+
+ this.props.history.push(CONFIRM_TRANSACTION_ROUTE)
}
}