aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-04-02 17:59:49 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-04-02 17:59:49 +0800
commit6277a4c46aa2fd94f0fff047aff346d7f255224d (patch)
treefa620da6b9143f85080aa18c412db7465965edec /ui/app/send-v2.js
parent2fa554a6414d2231dcd6f2476866ea9c1c7b80ca (diff)
downloadtangerine-wallet-browser-6277a4c46aa2fd94f0fff047aff346d7f255224d.tar.gz
tangerine-wallet-browser-6277a4c46aa2fd94f0fff047aff346d7f255224d.tar.zst
tangerine-wallet-browser-6277a4c46aa2fd94f0fff047aff346d7f255224d.zip
Refactor onboarding flow
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index e483008c6..abbb97643 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -29,7 +29,7 @@ const {
isTokenBalanceSufficient,
} = require('./components/send/send-utils')
const { isValidAddress } = require('./util')
-const { CONFIRM_TRANSACTION_ROUTE } = require('./routes')
+const { CONFIRM_TRANSACTION_ROUTE, DEFAULT_ROUTE } = require('./routes')
SendTransactionScreen.contextTypes = {
t: PropTypes.func,
@@ -201,7 +201,7 @@ SendTransactionScreen.prototype.renderHeader = function () {
h('div.page-container__header-close', {
onClick: () => {
clearSend()
- history.goBack()
+ history.push(DEFAULT_ROUTE)
},
}),
@@ -521,7 +521,7 @@ SendTransactionScreen.prototype.renderFooter = function () {
h('button.btn-secondary--lg.page-container__footer-button', {
onClick: () => {
clearSend()
- history.goBack()
+ history.push(DEFAULT_ROUTE)
},
}, this.context.t('cancel')),
h('button.btn-primary--lg.page-container__footer-button', {