Skip to content

Commit

Permalink
Merge pull request #6 from chaitanyakole/userId_issue
Browse files Browse the repository at this point in the history
Changes in telemetryservice
  • Loading branch information
gouravmore authored Jan 6, 2025
2 parents fba474e + 7c02887 commit 89b60d2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/services/telementryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ export const getEventOptions = () => {

const userType = isBuddyLogin ? "Buddy User" : "User";
const userId = isBuddyLogin
? emis_username + "/" + buddyUserId
: emis_username || "anonymous";
? localStorage.getItem("userId") + "/" + buddyUserId
: localStorage.getItem("userId") || "anonymous";

return {
object: {},
Expand All @@ -237,11 +237,7 @@ export const getEventOptions = () => {
pid: process.env.REACT_APP_PID, // Optional. In case the component is distributed, then which instance of that component
},
env: process.env.REACT_APP_ENV,
uid: `${
isBuddyLogin
? emis_username + "/" + buddyUserId
: emis_username || "anonymous"
}`,
uid: localStorage.getItem("userId") || "anonymous",
cdata: [
{
id: localStorage.getItem("virtualStorySessionID") || contentSessionId,
Expand Down

0 comments on commit 89b60d2

Please sign in to comment.