Skip to content

Commit

Permalink
Merge branch 'main' into fix/sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Dec 18, 2024
2 parents 1037b21 + 7dd0bf0 commit 1b65819
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flagsmith-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ const Flagsmith = class {
const flagsChanged = getChanges(this.oldFlags, flags);
const traitsChanged = getChanges(this.evaluationContext.identity?.traits, userTraits);
if (identifier || Object.keys(userTraits).length) {
this.evaluationContext.identity = {traits: userTraits};
this.evaluationContext.identity = {
...this.evaluationContext.identity,
traits: userTraits,
};
if (identifier) {
this.evaluationContext.identity.identifier = identifier;
}
Expand Down

0 comments on commit 1b65819

Please sign in to comment.