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

Function onVote

packages/shared/src/hooks/usePoll.tsx:130–140  ·  view source on GitHub ↗
(optionId: string, optionValue: string)

Source from the content-addressed store, hash-verified

128 });
129
130 const onVote = (optionId: string, optionValue: string) => {
131 mutate(optionId);
132 logEvent(
133 postLogEvent(LogEvent.VotePoll, post, {
134 extra: {
135 optionId,
136 optionValue,
137 },
138 }),
139 );
140 };
141
142 return { onVote, isCastingVote };
143};

Callers 3

handleVoteFunction · 0.85
handleVoteFunction · 0.85
usePollVoteFunction · 0.85

Calls 2

postLogEventFunction · 0.90
logEventFunction · 0.85

Tested by

no test coverage detected