diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-05-04 06:04:15 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-05-04 06:04:15 +0800 |
commit | 9c6ec054b13f24e88b78ca4124b0d3a46234b1d7 (patch) | |
tree | 6409dd6ea4aee0f58e243959568a4dca3fd0e63d /ui/app/conf-tx.js | |
parent | 46e100f595a3db7aaab913bc4c12f4d6c5d01cd5 (diff) | |
download | tangerine-wallet-browser-9c6ec054b13f24e88b78ca4124b0d3a46234b1d7.tar.gz tangerine-wallet-browser-9c6ec054b13f24e88b78ca4124b0d3a46234b1d7.tar.zst tangerine-wallet-browser-9c6ec054b13f24e88b78ca4124b0d3a46234b1d7.zip |
Show any pending txs when unlocking
Before the unlock action hard-routed to the home route, now it has a condition where it will show pending transactions instead.
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r-- | ui/app/conf-tx.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index d49d1f84c..8ab79c3b9 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -38,7 +38,8 @@ ConfirmTxScreen.prototype.render = function() { var unconfTxs = state.unconfTxs var unconfMsgs = state.unconfMsgs var unconfTxList = txHelper(unconfTxs, unconfMsgs) - var txData = unconfTxList[state.index] || {} + var index = state.index !== undefined ? state.index : 0 + var txData = unconfTxList[index] || {} return ( |