mirror of
https://github.com/mempool/mempool.git
synced 2026-08-19 13:18:06 +02:00
cleanup if/else
This commit is contained in:
parent
dc26c6f105
commit
4cd8d70de5
1 changed files with 3 additions and 5 deletions
|
|
@ -256,13 +256,11 @@ export class IncomingTransactionsGraphComponent implements OnInit, OnChanges, On
|
|||
],
|
||||
yAxis: {
|
||||
max: (value) => {
|
||||
if (!this.outlierCappingEnabled) {
|
||||
if (!this.outlierCappingEnabled || value.max < this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER) {
|
||||
return undefined;
|
||||
} else {
|
||||
return Math.round(this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER);
|
||||
}
|
||||
if (value.max < this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER) {
|
||||
return undefined;
|
||||
}
|
||||
return Math.round(this.medianVbytesPerSecond * OUTLIERS_MEDIAN_MULTIPLIER);
|
||||
},
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue