bypass-linter
This commit is contained in:
parent
e2c98ded5e
commit
57a9fe42a8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user