Skip to content

Commit

Permalink
Update - allow optional use of setting id
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Dec 18, 2023
1 parent fa2153f commit 56a1856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-web/src/hooks/usePostHogAg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const usePostHogAg = () => {

const identify: typeof posthog.identify = (id, ...args) => {
if (trackingEnabled && user?.id) {
posthog.identify(_id !== undefined ? _id : null, ...args)
posthog.identify(_id !== undefined ? _id : id, ...args)
}
}

Expand Down

0 comments on commit 56a1856

Please sign in to comment.