From 9cb203f98ab8b48854c3c7e262e626e819e61bb4 Mon Sep 17 00:00:00 2001 From: Miguel Medeiros Date: Mon, 15 Nov 2021 17:10:54 -0300 Subject: [PATCH] ref: remove function to better performance --- .../app/components/mempool-blocks/mempool-blocks.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts index e9f38ed1e..9000aab0b 100644 --- a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts +++ b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts @@ -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);