diff --git a/web-ui/src/app/components/transaction-details/transaction-details.component.html b/web-ui/src/app/components/transaction-details/transaction-details.component.html index 1699c7d..07f9bff 100644 --- a/web-ui/src/app/components/transaction-details/transaction-details.component.html +++ b/web-ui/src/app/components/transaction-details/transaction-details.component.html @@ -14,7 +14,8 @@
- +
@@ -36,7 +37,9 @@
- +
@@ -53,7 +56,9 @@
- +
diff --git a/web-ui/src/app/components/transaction-details/transaction-details.component.ts b/web-ui/src/app/components/transaction-details/transaction-details.component.ts index 24939b7..259b725 100644 --- a/web-ui/src/app/components/transaction-details/transaction-details.component.ts +++ b/web-ui/src/app/components/transaction-details/transaction-details.component.ts @@ -42,7 +42,7 @@ export class TransactionDetailsComponent implements OnInit { } getFee(tx: Transaction): number { - const vout = tx.output.map(t => t.value).reduce((a, b) => a + b); + const vout = tx.output.map(t => t.value).reduce((a, b) => a + b, 0); return Math.max(0, this.getVIN(tx) - vout); }