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 createReaction = async (input: ReactionInput): Promise<void> => {
|
||||||
const {error, reaction} = await apiClient.createReaction(input)
|
const { error, reaction } = await apiClient.createReaction(input)
|
||||||
if (error) await showSnackbar({type: 'error', body: t(error)})
|
if (error) await showSnackbar({ type: 'error', body: t(error) })
|
||||||
if (!reaction) return
|
if (!reaction) return
|
||||||
const changes = {
|
const changes = {
|
||||||
[reaction.id]: reaction,
|
[reaction.id]: reaction,
|
||||||
|
@ -97,8 +97,8 @@ export const ReactionsProvider = (props: { children: JSX.Element }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateReaction = async (input: ReactionInput): Promise<Reaction> => {
|
const updateReaction = async (input: ReactionInput): Promise<Reaction> => {
|
||||||
const {error, reaction} = await apiClient.updateReaction(input)
|
const { error, reaction } = await apiClient.updateReaction(input)
|
||||||
if (error) await showSnackbar({type: 'error', body: t(error)})
|
if (error) await showSnackbar({ type: 'error', body: t(error) })
|
||||||
if (reaction) setReactionEntities(reaction.id, reaction)
|
if (reaction) setReactionEntities(reaction.id, reaction)
|
||||||
return reaction
|
return reaction
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user