mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 10:41:54 +02:00
📈 Limit calls to identify
This commit is contained in:
parent
4f98661a12
commit
d76d3f8b78
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue