pl-fe: fix my small mistake
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -123,7 +123,7 @@ const useUnblockAccountMutation = (accountId: string) => {
|
|||||||
mutationKey: ['accountRelationships', accountId],
|
mutationKey: ['accountRelationships', accountId],
|
||||||
mutationFn: () => client.filtering.unblockAccount(accountId),
|
mutationFn: () => client.filtering.unblockAccount(accountId),
|
||||||
onMutate: () => updateRelationship(accountId, {
|
onMutate: () => updateRelationship(accountId, {
|
||||||
blocking: true,
|
blocking: false,
|
||||||
}, queryClient),
|
}, queryClient),
|
||||||
onError: (_err, _variables, context) => restorePreviousRelationship(accountId, context, queryClient),
|
onError: (_err, _variables, context) => restorePreviousRelationship(accountId, context, queryClient),
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user