Skip to content

Commit

Permalink
gm
Browse files Browse the repository at this point in the history
  • Loading branch information
jtgi committed Mar 7, 2024
1 parent b0cb49b commit f329138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/posthog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export function usePosthog(props: { user: User | null; enabled: boolean }) {
name: props.user.name,
});
}
}, [enabled, props.user]);
}, [props.enabled, props.user]);

useEffect(() => {
if (enabled) {

Check failure on line 31 in app/lib/posthog.tsx

View workflow job for this annotation

GitHub Actions / ʦ TypeScript

Cannot find name 'enabled'.
posthog.capture("$pageview");
}
}, [enabled, location]);
}, [props.enabled, location]);
}

0 comments on commit f329138

Please sign in to comment.