File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
OptimizelySDKCore/OptimizelySDKCore Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,10 @@ - (OPTLYVariation *)getVariationForExperiment:(NSString *)experimentKey
143
143
attributes : (NSDictionary <NSString *,NSString *> *)attributes
144
144
{
145
145
if (self.userProfile != nil ) {
146
- NSString *storedVaraitionKey = [self .userProfile getVariationFor : userId experiment: experimentKey];
147
- if (storedVaraitionKey != nil ) {
146
+ NSString *storedVariationKey = [self .userProfile getVariationForUser : userId experiment: experimentKey];
147
+ if (storedVariationKey != nil ) {
148
148
OPTLYVariation *storedVariation = [[self .config getExperimentForKey: experimentKey]
149
- getVariationForVariationKey: storedVaraitionKey ];
149
+ getVariationForVariationKey: storedVariationKey ];
150
150
if (storedVariation != nil ) {
151
151
return storedVariation;
152
152
}
@@ -157,7 +157,7 @@ - (OPTLYVariation *)getVariationForExperiment:(NSString *)experimentKey
157
157
userId: userId
158
158
attributes: attributes
159
159
bucketer: self .bucketer];
160
- [self .userProfile save : userId
160
+ [self .userProfile saveUser : userId
161
161
experiment: experimentKey
162
162
variation: bucketedVariation.variationKey];
163
163
return bucketedVariation;
You can’t perform that action at this time.
0 commit comments