(comment: Comment, isNew: boolean)
| 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) { |
no test coverage detected