Keep county ISO code in lower case in url

This commit is contained in:
nymkappa 2022-07-18 00:06:48 +02:00
parent 420ff16c2b
commit f16076b401
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04

View File

@ -46,16 +46,17 @@ export class NodesPerCountryChartComponent implements OnInit {
this.nodesPerCountryObservable$ = this.apiService.getNodesPerCountry()
.pipe(
tap(data => {
this.isLoading = false;
this.prepareChartOptions(data);
}),
map(data => {
for (let i = 0; i < data.length; ++i) {
data[i].rank = i + 1;
data[i].iso = data[i].iso.toLowerCase();
}
return data.slice(0, 100);
}),
tap(data => {
this.isLoading = false;
this.prepareChartOptions(data);
}),
share()
);
}