Skip to content

Commit

Permalink
removed bug for reset calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchiramoitra committed Jan 19, 2021
1 parent 3a7358c commit b29e3cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rudder/Classes/RSContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ - (void)updateTraits:(RSTraits *)traits {
if(traits == nil) {
traits = [[RSTraits alloc] init];
traits.anonymousId = [preferenceManager getAnonymousId];
[_traits removeAllObjects];
}

[_traits setValuesForKeysWithDictionary:[traits dict]];
Expand Down

0 comments on commit b29e3cc

Please sign in to comment.