ui: Correct date display chart. Various small fixes.

This commit is contained in:
gerlofvanek
2024-11-29 14:36:05 +01:00
parent cf92c5635d
commit f20a9fd75b
2 changed files with 78 additions and 79 deletions

View File

@@ -1327,7 +1327,7 @@ async function fetchLatestPrices() {
return cachedData.value;
}
const url = 'https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,bitcoin-cash,dash,dogecoin,decred,litecoin,particl,pivx,monero,zano,wownero,zcoin&vs_currencies=USD,BTC';
const url = `${config.apiEndpoints.coinGecko}/simple/price?ids=bitcoin,bitcoin-cash,dash,dogecoin,decred,litecoin,particl,pivx,monero,zano,wownero,zcoin&vs_currencies=USD,BTC&api_key=${config.apiKeys.coinGecko}`;
try {
const data = await makePostRequest(url);