fix: make identify call to pass missing user_id (#774)
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getConfig, snakeCaseObject } from '@edx/frontend-platform';
|
||||
import { sendPageEvent, sendTrackEvent } from '@edx/frontend-platform/analytics';
|
||||
import { identifyAuthenticatedUser, sendPageEvent, sendTrackEvent } from '@edx/frontend-platform/analytics';
|
||||
import {
|
||||
AxiosJwtAuthService,
|
||||
configure as configureAuth,
|
||||
@@ -64,9 +64,10 @@ const ProgressiveProfiling = (props) => {
|
||||
|
||||
if (registrationResponse) {
|
||||
setRegistrationResult(registrationResponse);
|
||||
identifyAuthenticatedUser(authenticatedUser?.userId);
|
||||
sendPageEvent('login_and_registration', 'welcome');
|
||||
}
|
||||
}, [DASHBOARD_URL, registrationResponse]);
|
||||
}, [authenticatedUser, DASHBOARD_URL, registrationResponse]);
|
||||
|
||||
useEffect(() => {
|
||||
if (registrationResponse) {
|
||||
|
||||
Reference in New Issue
Block a user