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

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;
}
});