ref: remove function to better performance

This commit is contained in:
Miguel Medeiros 2021-11-15 17:10:54 -03:00
parent 3bab50a43b
commit 9cb203f98a
No known key found for this signature in database
GPG Key ID: 819EDEE4673F3EBB

View File

@ -91,7 +91,7 @@ export class MempoolBlocksComponent implements OnInit, OnDestroy {
if (!mempoolBlocks.length) {
const emptyBlock = [{ index: 0, blockSize: 0, blockVSize: 0, feeRange: [0, 0], medianFee: 0, nTx: 0, totalFees: 0 }];
this.mempoolBlocks = this.reduceMempoolBlocksToFitScreen(emptyBlock);
this.mempoolBlocks = emptyBlock;
} else {
const stringifiedBlocks = JSON.stringify(mempoolBlocks);
this.mempoolBlocksFull = JSON.parse(stringifiedBlocks);