From 57a9fe42a8493b9072e730ae1f1c8239b10386a6 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 6 Mar 2024 12:56:00 +0300 Subject: [PATCH] bypass-linter --- src/context/reactions.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context/reactions.tsx b/src/context/reactions.tsx index 78c1e676..6e0e6756 100644 --- a/src/context/reactions.tsx +++ b/src/context/reactions.tsx @@ -57,8 +57,8 @@ export const ReactionsProvider = (props: { children: JSX.Element }) => { } const createReaction = async (input: ReactionInput): Promise => { - const {error, reaction} = await apiClient.createReaction(input) - if (error) await showSnackbar({type: 'error', body: t(error)}) + const { error, reaction } = await apiClient.createReaction(input) + if (error) await showSnackbar({ type: 'error', body: t(error) }) if (!reaction) return const changes = { [reaction.id]: reaction, @@ -97,8 +97,8 @@ export const ReactionsProvider = (props: { children: JSX.Element }) => { } const updateReaction = async (input: ReactionInput): Promise => { - const {error, reaction} = await apiClient.updateReaction(input) - if (error) await showSnackbar({type: 'error', body: t(error)}) + const { error, reaction } = await apiClient.updateReaction(input) + if (error) await showSnackbar({ type: 'error', body: t(error) }) if (reaction) setReactionEntities(reaction.id, reaction) return reaction }