aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/account-detail.js
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2017-01-12 08:27:05 +0800
committerFrankie <frankie.diamond@gmail.com>2017-01-12 09:02:57 +0800
commit34081c8cb2635bba0d6dd8a93d381f6554faa861 (patch)
tree5ef0cefddce1f7a2da0affec9b46f2b744610f0c /ui/app/account-detail.js
parentf9efb0817d884fee22817c9a622e6583ef08e5da (diff)
downloadtangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.tar
tangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.tar.gz
tangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.tar.bz2
tangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.tar.lz
tangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.tar.xz
tangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.tar.zst
tangerine-wallet-browser-34081c8cb2635bba0d6dd8a93d381f6554faa861.zip
Fix sorting and instances where something could be undefined
Diffstat (limited to 'ui/app/account-detail.js')
-rw-r--r--ui/app/account-detail.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js
index cfc59d99b..76554472e 100644
--- a/ui/app/account-detail.js
+++ b/ui/app/account-detail.js
@@ -249,8 +249,9 @@ AccountDetailScreen.prototype.subview = function () {
AccountDetailScreen.prototype.transactionList = function () {
const {transactions, unconfMsgs, address, network, shapeShiftTxList } = this.props
// sort by recency
+ var soretedTxs = transactions.sort((a, b) => b.time - a.time)
return h(TransactionList, {
- transactions,
+ transactions: soretedTxs,
network,
unconfMsgs,
address,