fix: fix missing userId in segment page event call on welcome page (#784)
This commit is contained in:
@@ -64,13 +64,13 @@ const ProgressiveProfiling = (props) => {
|
||||
|
||||
if (registrationResponse) {
|
||||
setRegistrationResult(registrationResponse);
|
||||
sendPageEvent('login_and_registration', 'welcome');
|
||||
}
|
||||
}, [DASHBOARD_URL, registrationResponse]);
|
||||
|
||||
useEffect(() => {
|
||||
if (registrationResponse && authenticatedUser?.userId) {
|
||||
identifyAuthenticatedUser(authenticatedUser.userId);
|
||||
sendPageEvent('login_and_registration', 'welcome');
|
||||
}
|
||||
}, [authenticatedUser, registrationResponse]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user