Add missing clock websocket subscriptions
This commit is contained in:
		
							parent
							
								
									dfb6d8bfdd
								
							
						
					
					
						commit
						4318a4280f
					
				@ -26,7 +26,6 @@ export class ClockFaceComponent implements OnInit, OnChanges, OnDestroy {
 | 
			
		||||
 | 
			
		||||
  constructor(
 | 
			
		||||
    public stateService: StateService,
 | 
			
		||||
    private websocketService: WebsocketService,
 | 
			
		||||
    private cd: ChangeDetectorRef
 | 
			
		||||
  ) {
 | 
			
		||||
    this.updateTime();
 | 
			
		||||
 | 
			
		||||
@ -52,7 +52,7 @@ export class ClockComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  ngOnInit(): void {
 | 
			
		||||
    this.resizeCanvas();
 | 
			
		||||
    this.websocketService.want(['blocks']);
 | 
			
		||||
    this.websocketService.want(['blocks', 'stats', 'mempool-blocks']);
 | 
			
		||||
 | 
			
		||||
    this.blocksSubscription = this.stateService.blocks$
 | 
			
		||||
      .subscribe(([block]) => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user