remove console.log, fix null blocks

This commit is contained in:
Mononaut
2023-07-11 16:35:00 +09:00
parent f12914976a
commit 3b827abbe8
3 changed files with 10 additions and 7 deletions

View File

@@ -142,7 +142,7 @@ export class BlockComponent implements OnInit, OnDestroy {
if (block?.extras?.reward != undefined) {
this.fees = block.extras.reward / 100000000 - this.blockSubsidy;
}
} else if (block.height === this.block.height) {
} else if (block.height === this.block?.height) {
this.block.stale = true;
this.block.canonical = block.id;
}