aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-14 01:28:07 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-14 05:24:03 +0800
commite2dc9328fcd227530156727af95a10ca4a68f0fe (patch)
treed4b3eb38982da0438082c28451a4ce027aa0d6d0 /ui
parent09a4491bb1fe0acfbc4b55ca1dd2b2a813454c6f (diff)
downloadtangerine-wallet-browser-e2dc9328fcd227530156727af95a10ca4a68f0fe.tar.gz
tangerine-wallet-browser-e2dc9328fcd227530156727af95a10ca4a68f0fe.tar.zst
tangerine-wallet-browser-e2dc9328fcd227530156727af95a10ca4a68f0fe.zip
Send user to most recent pending transaction after sending a transaction.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/reducers/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index d8b9d5e8b..fbabad0ef 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -176,7 +176,7 @@ function reduceApp (state, action) {
transForward: true,
})
- case actions.CREATE_NEW_VAULT_IN_PROGRESS:
+ case actions.CREATE_NEW_VAULT_IN_PROGRESS:
return extend(appState, {
currentView: {
name: 'createVault',
@@ -360,7 +360,7 @@ function reduceApp (state, action) {
return extend(appState, {
currentView: {
name: 'confTx',
- context: action.id ? indexForPending(state, action.id) : 0,
+ context: action.id ? indexForPending(state, action.id) : indexForLastPending(state),
},
transForward: action.transForward,
warning: null,
@@ -639,3 +639,7 @@ function indexForPending (state, txId) {
const index = unconfTxList.indexOf(match)
return index
}
+
+function indexForLastPending (state) {
+ return getUnconfActionList(state).length
+}