mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Add missing null check in block accelerations subscription
This commit is contained in:
parent
7491fb512c
commit
e7788133fa
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue