Fix addresses stat error
This commit is contained in:
		
							parent
							
								
									346c024ddf
								
							
						
					
					
						commit
						4ef1df47a3
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user