Add fake entry for missing price data before 2010-07-19
This commit is contained in:
		
							parent
							
								
									b99e5c4160
								
							
						
					
					
						commit
						a95d17950f
					
				@ -401,6 +401,13 @@ class PricesRepository {
 | 
			
		||||
            ['USD']: rate['USD']
 | 
			
		||||
          };
 | 
			
		||||
        });
 | 
			
		||||
        if (filteredRates.length === 0) { // No price data before 2010-07-19: add a fake entry
 | 
			
		||||
          filteredRates.push({
 | 
			
		||||
            time: 1279497600,
 | 
			
		||||
            [currency]: 0,
 | 
			
		||||
            ['USD']: 0
 | 
			
		||||
          });
 | 
			
		||||
        }
 | 
			
		||||
        return {
 | 
			
		||||
          prices: filteredRates as ApiPrice[],
 | 
			
		||||
          exchangeRates: exchangeRates
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user