Fix lint 'no-shadowed-variable'.

This commit is contained in:
Miguel Medeiros 2021-09-28 21:04:48 -03:00
parent 92048964d1
commit 8f774e55a8
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB

View File

@ -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 = `<div class="title">
${params[0].axisValue}
<span class="total-value">
@ -216,7 +216,7 @@ export class MempoolGraphComponent implements OnInit, OnChanges {
</td>
<td class="total-progress-sum">
<span>
${this.vbytesPipe.transform(values[item.seriesIndex].value, 2, 'vB', 'MvB', false)}
${this.vbytesPipe.transform(valuesOrdered[item.seriesIndex].value, 2, 'vB', 'MvB', false)}
</span>
</td>
<td class="total-progress-sum">