fix: issue of missing user_id on welcome page events (#828)
This commit is contained in:
@@ -70,11 +70,11 @@ const ProgressiveProfiling = (props) => {
|
||||
}, [DASHBOARD_URL, registrationResponse]);
|
||||
|
||||
useEffect(() => {
|
||||
if (registrationResponse && authenticatedUser?.userId) {
|
||||
if (ready && authenticatedUser?.userId) {
|
||||
identifyAuthenticatedUser(authenticatedUser.userId);
|
||||
sendPageEvent('login_and_registration', 'welcome');
|
||||
}
|
||||
}, [authenticatedUser, registrationResponse]);
|
||||
}, [authenticatedUser, ready]);
|
||||
|
||||
useEffect(() => {
|
||||
if (registrationResponse && authenticatedUser?.userId) {
|
||||
|
||||
Reference in New Issue
Block a user