Skip to content

Commit c31714b

Browse files
author
Jack Crish
committed
update broken distinct_id
1 parent 673494b commit c31714b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/containers/MainContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if(user.checkDocumentCookie(document)) {
3030
mixpanel.people.increment(user.get_dId(), "times");
3131
}else{
3232
console.log("No reactime cookie found. Attempting set cookie.");
33-
this.setCookie();
33+
user.setCookie();
3434
mixpanel.people.set(user.get_dId(), { "times": 1 });
3535
}
3636

src/app/user_id/user_id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MPID{
1717
this.cookie = cookie.serialize("reactime", crypto.randomBytes(64).toString('hex') );
1818
this.distinct_id = this.cookie?.reactime?.slice(0, 20);
1919

20-
if(this.cookie && this.distinct_id){
20+
if(this.cookie){
2121
return this.cookie;
2222
}else{
2323
throw new Error("Unable to set cookie. Cookie or Distinct Id is falsey");

0 commit comments

Comments
 (0)