mirror of
				https://github.com/tooot-app/app
				synced 2025-06-05 22:19:13 +02:00 
			
		
		
		
	Fix #356
This commit is contained in:
		| @@ -32,7 +32,7 @@ const contextMenuAccount = ({ | ||||
|   const { t } = useTranslation('componentContextMenu') | ||||
|  | ||||
|   const queryClient = useQueryClient() | ||||
|   const mutateion = useTimelineMutation({ | ||||
|   const mutation = useTimelineMutation({ | ||||
|     onSuccess: (_, params) => { | ||||
|       queryClient.refetchQueries(['Relationship', { id: accountId }]) | ||||
|       const theParams = params as MutationVarsTimelineUpdateAccountProperty | ||||
| @@ -117,7 +117,7 @@ const contextMenuAccount = ({ | ||||
|       analytics('timeline_shared_headeractions_account_mute_press', { | ||||
|         page: queryKey && queryKey[1].page | ||||
|       }) | ||||
|       mutateion.mutate({ | ||||
|       mutation.mutate({ | ||||
|         type: 'updateAccountProperty', | ||||
|         queryKey, | ||||
|         id: accountId, | ||||
| @@ -128,18 +128,18 @@ const contextMenuAccount = ({ | ||||
|       analytics('timeline_shared_headeractions_account_block_press', { | ||||
|         page: queryKey && queryKey[1].page | ||||
|       }) | ||||
|       mutateion.mutate({ | ||||
|       mutation.mutate({ | ||||
|         type: 'updateAccountProperty', | ||||
|         queryKey, | ||||
|         id: accountId, | ||||
|         payload: { property: 'block', currentValue: relationship?.blocking } | ||||
|       }) | ||||
|     } | ||||
|     if (actions[index].id === 'account-report') { | ||||
|     if (actions[index].id === 'account-reports') { | ||||
|       analytics('timeline_shared_headeractions_account_reports_press', { | ||||
|         page: queryKey && queryKey[1].page | ||||
|       }) | ||||
|       mutateion.mutate({ | ||||
|       mutation.mutate({ | ||||
|         type: 'updateAccountProperty', | ||||
|         queryKey, | ||||
|         id: accountId, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user