(comment: Comment, isNew: boolean)
| 96 | }; |
| 97 | |
| 98 | const onCommented = (comment: Comment, isNew: boolean) => { |
| 99 | if (!isNew) { |
| 100 | return; |
| 101 | } |
| 102 | |
| 103 | setPermissionNotificationCommentId(comment.id); |
| 104 | |
| 105 | if ( |
| 106 | isSourcePublicSquad(post.source) && |
| 107 | !post.source?.currentMember && |
| 108 | !isJoinSquadBannerDismissed |
| 109 | ) { |
| 110 | setJoinNotificationCommentId(comment.id); |
| 111 | } |
| 112 | |
| 113 | if (post.source?.type === SourceType.Squad) { |
| 114 | completeAction(ActionType.SquadFirstComment); |
| 115 | } |
| 116 | }; |
| 117 | |
| 118 | useEffect(() => { |
| 119 | if (shouldOnboardAuthor) { |
no test coverage detected