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