From e7788133faf3fa53b79aef0755f1cffca4b669fc Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 7 Mar 2024 19:52:42 +0000 Subject: [PATCH] Add missing null check in block accelerations subscription --- frontend/src/app/components/block/block.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/block/block.component.ts b/frontend/src/app/components/block/block.component.ts index c68108af1..1eb1c4798 100644 --- a/frontend/src/app/components/block/block.component.ts +++ b/frontend/src/app/components/block/block.component.ts @@ -481,7 +481,7 @@ export class BlockComponent implements OnInit, OnDestroy { totalFees += acc.boost_cost; } this.oobFees = totalFees; - if (block.height === this.block.height && this.blockAudit) { + if (block && this.block && this.blockAudit && block?.height === this.block?.height) { this.blockAudit.feeDelta = this.blockAudit.expectedFees > 0 ? (this.blockAudit.expectedFees - (this.block.extras.totalFees + this.oobFees)) / this.blockAudit.expectedFees : 0; } },