Fixes to block reward display on Liquid.

This commit is contained in:
softsimon
2020-07-23 12:10:22 +07:00
parent b6b9001406
commit 23f5e229c9
3 changed files with 9 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ export class BlockComponent implements OnInit, OnDestroy {
this.coinbaseTx = block.coinbaseTx;
}
this.setBlockSubsidy();
if (block.reward) {
if (block.reward !== undefined) {
this.fees = block.reward / 100000000 - this.blockSubsidy;
}
this.stateService.markBlock$.next({ blockHeight: this.blockHeight });