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

Function onCommented

packages/shared/src/components/post/PostEngagements.tsx:111–127  ·  view source on GitHub ↗
(comment: Comment, isNew: boolean)

Source from the content-addressed store, hash-verified

109 };
110
111 const onCommented = (comment: Comment, isNew: boolean) => {
112 if (!isNew) {
113 return;
114 }
115
116 if (
117 isSourcePublicSquad(post.source) &&
118 !post.source?.currentMember &&
119 !isJoinSquadBannerDismissed
120 ) {
121 setJoinNotificationCommentId(comment.id);
122 }
123
124 if (post.source?.type === SourceType.Squad) {
125 completeAction(ActionType.SquadFirstComment);
126 }
127 };
128
129 useEffect(() => {
130 if (shouldOnboardAuthor) {

Callers 4

onSuccessFunction · 0.70
SubCommentFunction · 0.50
MainCommentFunction · 0.50
onSuccessFunction · 0.50

Calls 1

isSourcePublicSquadFunction · 0.90

Tested by

no test coverage detected