diff --git a/components/CollaboratorFacepile.js b/components/CollaboratorFacepile.js index 9291f3a..a6e859a 100644 --- a/components/CollaboratorFacepile.js +++ b/components/CollaboratorFacepile.js @@ -78,7 +78,9 @@ export default function CollaboratorFacepile({ collectionId, creatorEmail }) { creatorEmail, collaborators: collaborators.length, allUsers: allUsers.length, - loading + loading, + collaboratorsData: collaborators, + allUsersData: allUsers }); return ( diff --git a/pages/api/collections/[id].js b/pages/api/collections/[id].js index f4e7397..194d71e 100644 --- a/pages/api/collections/[id].js +++ b/pages/api/collections/[id].js @@ -41,6 +41,7 @@ async function handler(req, res) { cards.set_name, cards.rarity, cards.card_type, + cards.game, cards.image_url, cards.market_price FROM collection_cards cc diff --git a/pages/collection/[id].js b/pages/collection/[id].js index 8b1a3e7..d8b8107 100644 --- a/pages/collection/[id].js +++ b/pages/collection/[id].js @@ -302,6 +302,7 @@ export default function CollectionView() { // Debug: Log the grouped cards to see what games we have console.log('Grouped cards:', groupedCards); console.log('Available games:', Object.keys(groupedCards)); + console.log('Sample card data:', cards[0]); // Check what fields the card actually has // Get game display names and counts - make it more flexible const gameStats = {}; @@ -561,7 +562,10 @@ export default function CollectionView() { -