bypass-linter

This commit is contained in:
Untone 2024-03-06 12:56:00 +03:00
parent e2c98ded5e
commit 57a9fe42a8

View File

@ -57,8 +57,8 @@ export const ReactionsProvider = (props: { children: JSX.Element }) => {
}
const createReaction = async (input: ReactionInput): Promise<void> => {
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<Reaction> => {
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
}