Merge pull request #5204 from mempool/simon/fix-tx-position-crash

Fix tx position frontend error
This commit is contained in:
wiz 2024-06-24 17:26:34 +09:00 committed by GitHub
commit e4c9b67239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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