Fix wrong tooltip % in isp pie chart

This commit is contained in:
nymkappa 2022-08-18 13:58:07 +02:00
parent 50d99634f7
commit 9f60d787fe
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -154,7 +154,7 @@ export class NodesPerISPChartComponent implements OnInit {
},
borderColor: '#000',
formatter: () => {
return `<b style="color: white">${isp[1]} (${isp[6]}%)</b><br>` +
return `<b style="color: white">${isp[1]} (${this.sortBy === 'capacity' ? isp[7] : isp[6]}%)</b><br>` +
$localize`${isp[4].toString()} nodes<br>` +
$localize`${this.amountShortenerPipe.transform(isp[2] / 100000000, 2)} BTC`
;