diff --git a/src/components/ContentCard/ContentCard.tsx b/src/components/ContentCard/ContentCard.tsx index 7a0ad17..6d895f1 100644 --- a/src/components/ContentCard/ContentCard.tsx +++ b/src/components/ContentCard/ContentCard.tsx @@ -34,15 +34,16 @@ function ContentCard({ storyId, pressFunction, }: ContentCardProps) { - const [reactions, setReactions] = useState(); + const [reactions, setReactions] = useState(); useEffect(() => { (async () => { const temp = await fetchAllReactionsToStory(id); if (temp != null) { - setReactions(temp); + setReactions(temp.map(r => r.reaction)); return; } + setReactions([]); })(); }, []);