@@ -56,6 +56,7 @@ public bool DecisionBatchInProgress
56
56
{
57
57
SaveToUserProfileService ( ) ;
58
58
}
59
+
59
60
_decisionBatchInProgress = value ;
60
61
}
61
62
}
@@ -168,6 +169,13 @@ OptimizelyDecideOption[] options
168
169
UserProfileUtil . IsValidUserProfileMap ( userProfileMap ) )
169
170
{
170
171
_userProfile = UserProfileUtil . ConvertMapToUserProfile ( userProfileMap ) ;
172
+ decisionVariationResult =
173
+ GetStoredVariation ( experiment , _userProfile , config ) ;
174
+ reasons += decisionVariationResult . DecisionReasons ;
175
+ if ( decisionVariationResult . ResultObject != null )
176
+ {
177
+ return decisionVariationResult . SetReasons ( reasons ) ;
178
+ }
171
179
}
172
180
else if ( userProfileMap == null )
173
181
{
@@ -181,17 +189,6 @@ OptimizelyDecideOption[] options
181
189
reasons . AddInfo ( "The UserProfileService returned an invalid map." ) ) ;
182
190
}
183
191
}
184
-
185
- if ( _userProfile != null )
186
- {
187
- decisionVariationResult =
188
- GetStoredVariation ( experiment , _userProfile , config ) ;
189
- reasons += decisionVariationResult . DecisionReasons ;
190
- if ( decisionVariationResult . ResultObject != null )
191
- {
192
- return decisionVariationResult . SetReasons ( reasons ) ;
193
- }
194
- }
195
192
}
196
193
catch ( Exception exception )
197
194
{
0 commit comments