📈 Limit calls to identify

This commit is contained in:
Luke Vella 2024-11-10 15:42:31 +00:00
parent 4f98661a12
commit d76d3f8b78
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C

View file

@ -66,7 +66,7 @@ export const UserProvider = (props: { children?: React.ReactNode }) => {
const tier = isGuest ? "guest" : subscription?.active ? "pro" : "hobby";
React.useEffect(() => {
if (user) {
if (user?.email) {
posthog?.identify(user.id, {
email: user.email,
name: user.name,