From 91ddf7ea98b97766ebd90a920e18e345d7b9c761 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 24 Jun 2024 17:10:33 +0900 Subject: [PATCH] Fix tx position crash --- .../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 b4d698bb2..13608bb73 100644 --- a/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts +++ b/frontend/src/app/components/mempool-blocks/mempool-blocks.component.ts @@ -412,7 +412,7 @@ export class MempoolBlocksComponent implements OnInit, OnChanges, OnDestroy { } calculateTransactionPosition() { - if ((!this.txPosition && !this.txFeePerVSize && (this.markIndex === undefined || this.markIndex === -1)) || !this.mempoolBlocks) { + if ((!this.txPosition && !this.txFeePerVSize && (this.markIndex === undefined || this.markIndex === -1)) || !this.mempoolBlocks?.length) { this.arrowVisible = false; return; } else if (this.markIndex > -1) {