Skip to content

Commit

Permalink
Reverse traits
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Mar 22, 2024
1 parent 76fe808 commit 9d25ca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flagsmith-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@ const Flagsmith = class {
this.identity = state.identity || this.identity;
this.traits = state.traits || this.traits;
this.withTraits = {
...this.traits
...(this.withTraits||{}),
...this.traits,
};
this.evaluationEvent = state.evaluationEvent || this.evaluationEvent;
this.log("setState called", this)
Expand Down

0 comments on commit 9d25ca4

Please sign in to comment.