Merge pull request #4640 from mempool/fix-liquid-frontend-crash

Fix Liquid frontend crash
This commit is contained in:
softsimon 2024-02-04 23:38:32 +08:00 committed by GitHub
commit a15729c38f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -507,7 +507,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
}
}
}
if (!found && txFeePerVSize < mempoolBlocks[mempoolBlocks.length - 1].feeRange[0]) {
if (!found && mempoolBlocks.length && txFeePerVSize < mempoolBlocks[mempoolBlocks.length - 1].feeRange[0]) {
this.txInBlockIndex = 7;
}
});