diff --git a/src/context/reactions.tsx b/src/context/reactions.tsx index 5011fd9a..8717f6da 100644 --- a/src/context/reactions.tsx +++ b/src/context/reactions.tsx @@ -84,7 +84,7 @@ export const ReactionsProvider = (props: { children: JSX.Element }) => { const deleteReaction = async (reaction_id: number): Promise => { const r = await apiClient.destroyReaction(reaction_id) setReactionEntities({ - [r.id]: undefined, + [reaction_id]: undefined, }) }