|  | @ -82,32 +82,35 @@ export class HomePageComponent implements OnDestroy, OnInit { | 
			
		
	
		
		
			
				
					|  |  |       .onChangeHasToken() |  |  |       .onChangeHasToken() | 
			
		
	
		
		
			
				
					|  |  |       .pipe(takeUntil(this.unsubscribeSubject)) |  |  |       .pipe(takeUntil(this.unsubscribeSubject)) | 
			
		
	
		
		
			
				
					|  |  |       .subscribe(() => { |  |  |       .subscribe(() => { | 
			
		
	
		
		
			
				
					
					|  |  |         this.userService.get().subscribe((user) => { |  |  |         this.userService | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           this.user = user; |  |  |           .get() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  |           .pipe(takeUntil(this.unsubscribeSubject)) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           this.hasPermissionToAccessFearAndGreedIndex = hasPermission( |  |  |           .subscribe((user) => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             user.permissions, |  |  |             this.user = user; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             permissions.accessFearAndGreedIndex |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           ); |  |  |             this.hasPermissionToAccessFearAndGreedIndex = hasPermission( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  |               user.permissions, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           if (this.hasPermissionToAccessFearAndGreedIndex) { |  |  |               permissions.accessFearAndGreedIndex | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             this.dataService |  |  |             ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |               .fetchSymbolItem('GF.FEAR_AND_GREED_INDEX') |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |               .pipe(takeUntil(this.unsubscribeSubject)) |  |  |             if (this.hasPermissionToAccessFearAndGreedIndex) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |               .subscribe(({ marketPrice }) => { |  |  |               this.dataService | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 this.fearAndGreedIndex = marketPrice; |  |  |                 .fetchSymbolItem('GF.FEAR_AND_GREED_INDEX') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  |                 .pipe(takeUntil(this.unsubscribeSubject)) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 this.cd.markForCheck(); |  |  |                 .subscribe(({ marketPrice }) => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |               }); |  |  |                   this.fearAndGreedIndex = marketPrice; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           } |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  |                   this.cd.markForCheck(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           this.hasPermissionToReadForeignPortfolio = hasPermission( |  |  |                 }); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             user.permissions, |  |  |             } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             permissions.readForeignPortfolio |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           ); |  |  |             this.hasPermissionToReadForeignPortfolio = hasPermission( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  | 
 |  |  |               user.permissions, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |           this.cd.markForCheck(); |  |  |               permissions.readForeignPortfolio | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |         }); |  |  |             ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             this.cd.markForCheck(); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |           }); | 
			
		
	
		
		
			
				
					|  |  |       }); |  |  |       }); | 
			
		
	
		
		
			
				
					|  |  |   } |  |  |   } | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | 
 |