Skip to content

Commit fb7561b

Browse files
committed
update methods with new protocol. fix typos
1 parent 49a4096 commit fb7561b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OptimizelySDKCore/OptimizelySDKCore/Optimizely.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ - (OPTLYVariation *)getVariationForExperiment:(NSString *)experimentKey
143143
attributes:(NSDictionary<NSString *,NSString *> *)attributes
144144
{
145145
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) {
148148
OPTLYVariation *storedVariation = [[self.config getExperimentForKey:experimentKey]
149-
getVariationForVariationKey:storedVaraitionKey];
149+
getVariationForVariationKey:storedVariationKey];
150150
if (storedVariation != nil) {
151151
return storedVariation;
152152
}
@@ -157,7 +157,7 @@ - (OPTLYVariation *)getVariationForExperiment:(NSString *)experimentKey
157157
userId:userId
158158
attributes:attributes
159159
bucketer:self.bucketer];
160-
[self.userProfile save:userId
160+
[self.userProfile saveUser:userId
161161
experiment:experimentKey
162162
variation:bucketedVariation.variationKey];
163163
return bucketedVariation;

0 commit comments

Comments
 (0)