From 0c82952927006202ee2fe7c80a9fbb1509cc8b53 Mon Sep 17 00:00:00 2001 From: Mann Patel <130435633+MannPatel0@users.noreply.github.com> Date: Sun, 13 Apr 2025 12:59:09 -0600 Subject: [PATCH] Update Favorites.jsx --- frontend/src/pages/Favorites.jsx | 55 +------------------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/frontend/src/pages/Favorites.jsx b/frontend/src/pages/Favorites.jsx index 59219fb..868eaf1 100644 --- a/frontend/src/pages/Favorites.jsx +++ b/frontend/src/pages/Favorites.jsx @@ -80,9 +80,8 @@ const Favorites = () => { id: item.ProductID, title: item.Name, price: parseFloat(item.Price), - category: mapCategory(item.CategoryID), // 👈 map numeric category to a string + category: mapCategory(item.CategoryID), image: item.image_url || "/default-image.jpg", - condition: "Used", // or another field if you add `Condition` to your DB seller: item.SellerName, datePosted: formatDatePosted(item.Date), dateAdded: item.Date || new Date().toISOString(), @@ -118,62 +117,12 @@ const Favorites = () => { ? sortedFavorites : sortedFavorites.filter((item) => item.category === filterCategory); - // rest of the JSX remains unchanged... - return (