Skip to content

Commit

Permalink
extra log removal. Footer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtranmer committed Apr 16, 2024
1 parent 6ca6760 commit a30a2b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/HomePage/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Footer = () => {
</li>
))}
</ul>
<p>&copy; 2024 BCard | <a href="https://www.coingecko.com/en/api">CoinGecko API kudos for price history</a> | <a href="https://defillama.com/docs/api">Blocks by Llama.fi</a></p>
<p>&copy; 2024 BCard | <a target="_blank" href="https://www.coingecko.com/en/api">CoinGecko API</a> | <a href="https://defillama.com/docs/api">Blocks by Llama.fi</a></p>
</footer>
</div>
);
Expand Down
6 changes: 3 additions & 3 deletions src/functions/displayConvertAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function displayConvertAmount(value:any, asset:any, timestamp:any,
// parse hrough the historical data corresponding to the asset and FIAT and
// return price at timestamp

console.log(asset, value, timestamp, fiat, CG_API_KEY, CG_API_URL);
// console.log(asset, value, timestamp, fiat, CG_API_KEY, CG_API_URL);

// get active assets list and compare to asset

Expand Down Expand Up @@ -55,7 +55,7 @@ async function getSinglePrice(asset:any, value:any, timestamp:any, fiat:any, las

// default for inputs
let useAsset = possibleAssetsObj[asset as keyof typeof possibleAssetsObj].assetGeckoList || asset.toLowerCase();
console.log("Asset: " +useAsset, asset);
// console.log("Asset: " +useAsset, asset);
let useFiat = fiat.toLowerCase();


Expand All @@ -81,8 +81,8 @@ async function getSinglePrice(asset:any, value:any, timestamp:any, fiat:any, las
console.log("Lookup using FREE API: " + asset, fiat, useDate, url, useAsset);

let gp = await getPrice(url); // gecko price
// console.log("GP: ", gp);


if(gp === 0){
console.log("Price Lookup is 0/error, returning last price: " + lastPrice);
return lastPrice;
Expand Down

0 comments on commit a30a2b4

Please sign in to comment.