From 8f774e55a864e69fbd54bef0b847202ea54b986b Mon Sep 17 00:00:00 2001 From: Miguel Medeiros Date: Tue, 28 Sep 2021 21:04:48 -0300 Subject: [PATCH] Fix lint 'no-shadowed-variable'. --- .../app/components/mempool-graph/mempool-graph.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts index 7a2d3cc42..e1fb80db1 100644 --- a/frontend/src/app/components/mempool-graph/mempool-graph.component.ts +++ b/frontend/src/app/components/mempool-graph/mempool-graph.component.ts @@ -171,10 +171,10 @@ export class MempoolGraphComponent implements OnInit, OnChanges { return { totalValue: totalValueTemp, totalValueArray: totalValueArrayTemp.reverse(), - values: this.inverted ? [...values].reverse() : values, + valuesOrdered: this.inverted ? [...values].reverse() : values, }; }; - const { totalValue, totalValueArray, values } = totals(params); + const { totalValue, totalValueArray, valuesOrdered } = totals(params); const title = `
${params[0].axisValue} @@ -216,7 +216,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges { - ${this.vbytesPipe.transform(values[item.seriesIndex].value, 2, 'vB', 'MvB', false)} + ${this.vbytesPipe.transform(valuesOrdered[item.seriesIndex].value, 2, 'vB', 'MvB', false)}