From f16076b4011d2c5b176b59f420b8881e88dda511 Mon Sep 17 00:00:00 2001 From: nymkappa Date: Mon, 18 Jul 2022 00:06:48 +0200 Subject: [PATCH] Keep county ISO code in lower case in url --- .../nodes-per-country-chart.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts b/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts index df8c661ef..cee350a34 100644 --- a/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts +++ b/frontend/src/app/lightning/nodes-per-country-chart/nodes-per-country-chart.component.ts @@ -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() ); }