remove console.log, fix null blocks

This commit is contained in:
Mononaut committed 2023-07-13 10:45:46 +09:00
1 parent 842ac8ce39
commit 7230b65dc3
3 files changed
+10 -7

No files matched your search

@@ -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;
}