Browse Source
Merge pull request #292 from LN-Zap/fix/activity-ordering
fix(funding-txs-odering)
renovate/lint-staged-8.x
JimmyMow
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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) |
|
|
|
} |
|
|
|
) |
|
|
|
|
|
|
|