Add missing this.block null check
This commit is contained in:
parent
1e69ea2f1d
commit
eccbcbe53b
@ -700,7 +700,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadedCacheBlock(block: BlockExtended): void {
|
loadedCacheBlock(block: BlockExtended): void {
|
||||||
if (block.height === this.block.height && block.id !== this.block.id) {
|
if (this.block && block.height === this.block.height && block.id !== this.block.id) {
|
||||||
this.block.stale = true;
|
this.block.stale = true;
|
||||||
this.block.canonical = block.id;
|
this.block.canonical = block.id;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user