Add missing this.block null check
This commit is contained in:
1 parent
ce8630d747
commit
e9d22e3b6f
1 file changed
+1
-1
@@ -700,7 +700,7 @@ export class BlockComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
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.canonical = block.id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user