Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function handleFollowClick() {
doToggleTagFollow(tag);
const nowFollowing = !isFollowing;
analytics.tagFollowEvent(tag, nowFollowing, 'tag-page');
}
function handleTagClick(tag) {
if (onRemove) {
onRemove(tag);
} else if (doToggleTagFollow) {
doToggleTagFollow(tag.name);
const wasFollowing = followedTags.map(tag => tag.name).includes(tag.name);
const nowFollowing = !wasFollowing;
analytics.tagFollowEvent(tag.name, nowFollowing, 'tag-select');
}
}
function handleFollowClick() {
doToggleTagFollow(tag);
const nowFollowing = !isFollowing;
analytics.tagFollowEvent(tag, nowFollowing, 'tag-page');
}