mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Fix addresses stat error
This commit is contained in:
parent
346c024ddf
commit
4ef1df47a3
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
|
||||||
import { Observable, combineLatest, map } from 'rxjs';
|
import { Observable, combineLatest, map, of } from 'rxjs';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-federation-addresses-stats',
|
selector: 'app-federation-addresses-stats',
|
||||||
|
@ -16,8 +16,8 @@ export class FederationAddressesStatsComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.federationWalletStats$ = combineLatest([
|
this.federationWalletStats$ = combineLatest([
|
||||||
this.federationAddressesNumber$,
|
this.federationAddressesNumber$ ?? of(undefined),
|
||||||
this.federationUtxosNumber$
|
this.federationUtxosNumber$ ?? of(undefined)
|
||||||
]).pipe(
|
]).pipe(
|
||||||
map(([address_count, utxo_count]) => {
|
map(([address_count, utxo_count]) => {
|
||||||
return { address_count, utxo_count}
|
return { address_count, utxo_count}
|
||||||
|
|
Loading…
Add table
Reference in a new issue