mirror of
https://github.com/mempool/mempool.git
synced 2025-03-26 17:51:45 +01:00
Merge pull request #5116 from mempool/simon/fix-undefined-group-channels
This commit is contained in:
commit
f0437886ee
@ -80,6 +80,12 @@ export class GroupComponent implements OnInit {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
nodes.map((node) => {
|
||||
node.channels = node.opened_channel_count;
|
||||
return node;
|
||||
});
|
||||
|
||||
const sumLiquidity = nodes.reduce((partialSum, a) => partialSum + parseInt(a.capacity, 10), 0);
|
||||
const sumChannels = nodes.reduce((partialSum, a) => partialSum + a.opened_channel_count, 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user