code correction

This commit is contained in:
Caleb Fultz 2024-08-21 12:07:20 -04:00
parent 326c3fce93
commit 1aed7fb673
4 changed files with 4 additions and 4 deletions

2
app.js
View File

@ -101,7 +101,7 @@ async function fetchCardDetails(cardName, setCode) {
const response = await fetch(`https://api.scryfall.com/cards/named?exact=${encodeURIComponent(cardName)}&set=${encodeURIComponent(setCode)}`); const response = await fetch(`https://api.scryfall.com/cards/named?exact=${encodeURIComponent(cardName)}&set=${encodeURIComponent(setCode)}`);
const data = await response.json(); const data = await response.json();
console.log('Fetched Data:', data); // Debugging: Log the fetched data console.log('Fetched Data from Scryfall:', data); // Debugging: Log the fetched data
// Return the relevant card details // Return the relevant card details
return { return {

View File

@ -64,7 +64,7 @@
<footer> <footer>
<p> <p>
<a href="https://github.com/cfultz/mtgcsv" target="_blank">View on GitHub</a> | <a href="https://github.com/cfultz/mtgcsv" target="_blank">View on GitHub.com</a> |
This app is not affiliated with Wizards of the Coast or Hasbro. All rights and trademarks are owned by their respective owners. This app is not affiliated with Wizards of the Coast or Hasbro. All rights and trademarks are owned by their respective owners.
</p> </p>
</footer> </footer>