From 38264b09526e6015538685bd71ba16b47c58cc32 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Fri, 9 Feb 2018 10:44:11 -0600 Subject: [PATCH] fix(funding-txs-odering) --- app/reducers/activity.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/reducers/activity.js b/app/reducers/activity.js index e08ff65e..d54723c2 100644 --- a/app/reducers/activity.js +++ b/app/reducers/activity.js @@ -147,8 +147,9 @@ const fundedActivity = createSelector( channelsSelector, (transactions, channels) => { const fundingTxIds = channels.map(channel => channel.channel_point.split(':')[0]) + const fundingTxs = transactions.filter(transaction => fundingTxIds.includes(transaction.tx_hash)) - return transactions.filter(transaction => fundingTxIds.includes(transaction.tx_hash)) + return fundingTxs.sort((a, b) => b.time_stamp - a.time_stamp) } )