Merge pull request #5369 from mempool/nymkappa/getjwtemptynonofficial
[services] getJWT call returns nothing if non official
This commit is contained in:
		
						commit
						262866c15b
					
				@ -118,6 +118,9 @@ export class ServicesApiServices {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getJWT$() {
 | 
					  getJWT$() {
 | 
				
			||||||
 | 
					    if (!this.stateService.env.OFFICIAL_MEMPOOL_SPACE) {
 | 
				
			||||||
 | 
					      return of(null);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    return this.httpClient.get<any>(`${this.stateService.env.SERVICES_API}/auth/getJWT`);
 | 
					    return this.httpClient.get<any>(`${this.stateService.env.SERVICES_API}/auth/getJWT`);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user