aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-07-19 00:34:02 +0800
committerGitHub <noreply@github.com>2017-07-19 00:34:02 +0800
commit1e718505824f5ee566138edb6de1f914397100b6 (patch)
treea560ddc4fb5cc34ec1fa7c17e2c2b8f177c84f6c /ui
parente083e775858f2da16f7508229f20aaac83f1eb20 (diff)
parent614501e743a0c1584062c78a25e6b9a3ddf10aab (diff)
downloadtangerine-wallet-browser-1e718505824f5ee566138edb6de1f914397100b6.tar.gz
tangerine-wallet-browser-1e718505824f5ee566138edb6de1f914397100b6.tar.zst
tangerine-wallet-browser-1e718505824f5ee566138edb6de1f914397100b6.zip
Merge pull request #1787 from MetaMask/i1637-TransactionOrder
Fix transaction confirmation ordering
Diffstat (limited to 'ui')
-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
}
+