mirror of
https://github.com/mempool/mempool.git
synced 2025-03-15 04:11:48 +01:00
Add fake entry for missing price data before 2010-07-19
This commit is contained in:
parent
b99e5c4160
commit
a95d17950f
1 changed files with 7 additions and 0 deletions
|
@ -401,6 +401,13 @@ class PricesRepository {
|
||||||
['USD']: rate['USD']
|
['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 {
|
return {
|
||||||
prices: filteredRates as ApiPrice[],
|
prices: filteredRates as ApiPrice[],
|
||||||
exchangeRates: exchangeRates
|
exchangeRates: exchangeRates
|
||||||
|
|
Loading…
Add table
Reference in a new issue