diff --git a/src/progressive-profiling/ProgressiveProfiling.jsx b/src/progressive-profiling/ProgressiveProfiling.jsx index cefd5ad0..54e6be4c 100644 --- a/src/progressive-profiling/ProgressiveProfiling.jsx +++ b/src/progressive-profiling/ProgressiveProfiling.jsx @@ -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) {