Skip to content

Commit

Permalink
Merge pull request #871 from hackclub/add-fullstory-identify
Browse files Browse the repository at this point in the history
Switch to slack ID for FS identify
  • Loading branch information
maxwofford authored Nov 27, 2024
2 parents 5e28ba8 + 187df90 commit 7f5dcbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/harbor/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const LoadingOverlay = () => {
}

const fsIdentify = (id: string, email: string, displayName?: string) => {
console.log('Identifying with FullStory', id, email, displayName)
if (!!window?.FS) {
window?.FS?.identify(id, {
email,
Expand Down Expand Up @@ -166,8 +167,8 @@ export default function Harbor({
}

useEffect(() => {
if (!!session.email && !!session.personId) {
fsIdentify(session.personId, session.email, session.name)
if (!!session.email && !!session.slackId) {
fsIdentify(session.slackId, session.email, session.name)
}
}, [session])

Expand Down

0 comments on commit 7f5dcbc

Please sign in to comment.