Fix tx position crash

This commit is contained in:
softsimon 2024-06-24 17:10:33 +09:00
parent dfc61f3991
commit 91ddf7ea98
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -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) {