From 5e8c99332f515bbee0dce7bd8197953924549fdb Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 23 Jan 2024 22:24:31 +0300 Subject: [PATCH] small-rating-fix --- src/context/reactions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }) }