aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-07-18 05:16:39 +0800
committerDan Finlay <dan@danfinlay.com>2017-07-18 05:18:00 +0800
commit614501e743a0c1584062c78a25e6b9a3ddf10aab (patch)
treeaba81e5cf7b3ca9f0ef79605345d9406ac7a26e3 /ui/lib
parent919f3c46015bcf39be7efd13d84cb24c8be5c939 (diff)
downloadtangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.tar
tangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.tar.gz
tangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.tar.bz2
tangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.tar.lz
tangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.tar.xz
tangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.tar.zst
tangerine-wallet-browser-614501e743a0c1584062c78a25e6b9a3ddf10aab.zip
Fix transaction confirmation ordering
Newest tx or message will now always appear last, and a new tx proposed after the user has a confirmation box open will never change the confirmation to a different tx proposed. Fixes #1637
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/tx-helper.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/lib/tx-helper.js b/ui/lib/tx-helper.js
index ec19daf64..afc62e7b6 100644
--- a/ui/lib/tx-helper.js
+++ b/ui/lib/tx-helper.js
@@ -12,6 +12,10 @@ module.exports = function (unapprovedTxs, unapprovedMsgs, personalMsgs, network)
const personalValues = valuesFor(personalMsgs)
log.debug(`tx helper found ${personalValues.length} unsigned personal messages`)
allValues = allValues.concat(personalValues)
+ allValues = allValues.sort((a, b) => {
+ return a.time > b.time
+ })
- return allValues.sort(txMeta => txMeta.time)
+ return allValues
}
+