From fd57263fe55692535e10c19ff569ab543fc614fc Mon Sep 17 00:00:00 2001 From: r-southworth Date: Tue, 19 Nov 2024 10:58:17 -0500 Subject: [PATCH] fix favorites --- src/components/posts/ViewUserFavorites.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/posts/ViewUserFavorites.tsx b/src/components/posts/ViewUserFavorites.tsx index fc39f00..dd82f5e 100644 --- a/src/components/posts/ViewUserFavorites.tsx +++ b/src/components/posts/ViewUserFavorites.tsx @@ -74,10 +74,11 @@ export const ViewUserFavorites: Component = () => { }); const data = await response.json(); + console.log("Get user favorites: ", data); if (data) { if (data.type === "single") { console.log(data); - setFavoritedItems(data.posts.body); + setFavoritedItems(data.posts); setListName(data.list_name); setListNumber(data.list_number); setLoading(false);