fix: make identify call to pass missing user_id (#774)

This commit is contained in:
Shahbaz Shabbir
2023-03-10 18:05:02 +05:00
committed by GitHub
parent 294519c7a5
commit 93dcd8f16e
2 changed files with 9 additions and 2 deletions

View File

@@ -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) {