We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e3a68 commit a1f3ad6Copy full SHA for a1f3ad6
core/src/main/java/com/segment/analytics/kotlin/core/State.kt
@@ -194,7 +194,7 @@ data class UserInfo(
194
195
class SetTraitsAction(var traits: JsonObject) : Action<UserInfo> {
196
override fun reduce(state: UserInfo): UserInfo {
197
- return UserInfo(state.anonymousId, state.userId, traits)
+ return state.copy(traits = traits)
198
}
199
200
0 commit comments