Liquid: Display block times and amounts correctly.

This commit is contained in:
softsimon
2020-03-25 21:29:40 +07:00
parent 43585be6a9
commit 350a06a096
8 changed files with 33 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ export class BlockComponent implements OnInit, OnDestroy {
),
)
.subscribe((transactions: Transaction[]) => {
if (this.fees === undefined) {
if (this.fees === undefined && transactions[0]) {
this.fees = transactions[0].vout.reduce((acc: number, curr: Vout) => acc + curr.value, 0) / 100000000 - this.blockSubsidy;
}
this.transactions = transactions;