Display fees correctly for Liquid blocks.

This commit is contained in:
softsimon
2020-06-19 23:32:17 +07:00
parent 279b79b9b1
commit 22813a09e8
4 changed files with 4 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ export class BlockComponent implements OnInit, OnDestroy {
),
)
.subscribe((transactions: Transaction[]) => {
if (this.fees === undefined && transactions[0] && this.network !== 'liquid') {
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;