Skip to content

Commit

Permalink
Update - replace null type to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Dec 18, 2023
1 parent 3f1162a commit 8711957
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 @@ -8,7 +8,7 @@ export const usePostHogAg = () => {
const {user} = useProfileData()
const posthog = usePostHog()

const _id: string | null = isDemo() ? user?.email : null
const _id: string | undefined = isDemo() ? user?.email : null

const capture: typeof posthog.capture = (...args) => {
if (trackingEnabled && user?.id) {
Expand Down

0 comments on commit 8711957

Please sign in to comment.