| 
						
						
							
								
							
						
						
					 | 
					@ -360,27 +360,10 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public ngOnChanges() { | 
					 | 
					 | 
					  public ngOnChanges() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    if (this.accountsWithValue?.length > 0) { | 
					 | 
					 | 
					    this.accounts = (this.user?.accounts ?? []).map((account) => ({ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      this.accounts = this.accountsWithValue; | 
					 | 
					 | 
					      id: account.id, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					    } else { | 
					 | 
					 | 
					      name: account.name | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      this.accounts = (this.user?.accounts ?? []).map((account) => ({ | 
					 | 
					 | 
					    })) as AccountWithValue[]; | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					        ...account, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        allocationInPercentage: 0, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        balanceInBaseCurrency: account.balance || 0, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        dividendInBaseCurrency: 0, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        interestInBaseCurrency: 0, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        platform: account.platformId | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          ? { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              id: account.platformId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              name: account.platformId, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					              url: '' | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          : undefined, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        transactionCount: 0, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        value: account.balance || 0, | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        valueInBaseCurrency: account.balance || 0 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      })) as AccountWithValue[]; | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    if (this.hasPermissionToChangeFilters) { | 
					 | 
					 | 
					    if (this.hasPermissionToChangeFilters) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      this.portfolioFilterFormControl.enable({ emitEvent: false }); | 
					 | 
					 | 
					      this.portfolioFilterFormControl.enable({ emitEvent: false }); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |