MCPcopy Create free account
hub / github.com/dailydotdev/apps / prepareVotePostLogOptions

Function prepareVotePostLogOptions

packages/shared/src/hooks/vote/useVotePost.ts:26–36  ·  view source on GitHub ↗
({
  origin,
  opts,
}: ToggleVoteProps)

Source from the content-addressed store, hash-verified

24import { useActiveFeedContext } from '../../contexts';
25
26const prepareVotePostLogOptions = ({
27 origin,
28 opts,
29}: ToggleVoteProps): PostLogEventFnOptions => {
30 const { extra, ...restOpts } = opts || {};
31
32 return {
33 ...restOpts,
34 extra: { ...extra, origin },
35 };
36};
37
38const useVotePost = ({
39 onMutate,

Callers 1

useVotePostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected