aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-07-25 08:27:27 +0800
committerDan Finlay <dan@danfinlay.com>2017-07-25 12:43:34 +0800
commit7a04643d8ea8a47cc159fc69c941e588e8b873cc (patch)
tree927a5c62514725b59c600aba28d6528a8bbcf9f9
parenta22adec66fd0c541eb350ea424a6b00d179eedaf (diff)
downloadtangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.tar
tangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.tar.gz
tangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.tar.bz2
tangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.tar.lz
tangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.tar.xz
tangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.tar.zst
tangerine-wallet-browser-7a04643d8ea8a47cc159fc69c941e588e8b873cc.zip
Restore sort order fix
-rw-r--r--ui/app/app.js2
-rw-r--r--ui/lib/tx-helper.js5
2 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index d1a20f079..973cb756c 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -125,7 +125,7 @@ App.prototype.renderAppBar = function () {
h('div', {
style: {
- width: '100%'
+ width: '100%',
},
}, [
diff --git a/ui/lib/tx-helper.js b/ui/lib/tx-helper.js
index ec19daf64..5def23e51 100644
--- a/ui/lib/tx-helper.js
+++ b/ui/lib/tx-helper.js
@@ -12,6 +12,9 @@ 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
}