diff --git a/src/features/user/useUserDetails.tsx b/src/features/user/useUserDetails.tsx index 259a364e26..7bb83cd2b8 100644 --- a/src/features/user/useUserDetails.tsx +++ b/src/features/user/useUserDetails.tsx @@ -32,7 +32,11 @@ export function useUserDetails(handle: string) { throw error; } - present(buildBlocked(!isBlocked, handle)); + present( + buildBlocked(!isBlocked, handle, () => { + dispatch(blockUser(isBlocked!, user.id)); + }), + ); } return { isBlocked, user, blockOrUnblock };