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 sumLiquidity = nodes.reduce((partialSum, a) => partialSum + parseInt(a.capacity, 10), 0);
|
||||||
const sumChannels = nodes.reduce((partialSum, a) => partialSum + a.opened_channel_count, 0);
|
const sumChannels = nodes.reduce((partialSum, a) => partialSum + a.opened_channel_count, 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user