File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/optimizely-sdk/lib/core/project_config Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,13 @@ module.exports = {
36
36
createProjectConfig : function ( datafile ) {
37
37
var projectConfig = fns . cloneDeep ( datafile ) ;
38
38
39
- // Manually parsed for audience targeting
39
+ /*
40
+ * Conditions of audiences in projectConfig.typedAudiences are not
41
+ * expected to be string-encoded as they are here in projectConfig.audiences.
42
+ */
40
43
fns . forEach ( projectConfig . audiences , function ( audience ) {
41
44
audience . conditions = JSON . parse ( audience . conditions ) ;
42
45
} ) ;
43
- /*
44
- * Note: conditions of audiences in projectConfig.typedAudiences are not
45
- * expected to be string-encoded as they are in projectConfig.audiences.
46
- */
47
46
projectConfig . audiencesById = fns . keyBy ( projectConfig . audiences , 'id' ) ;
48
47
fns . assign ( projectConfig . audiencesById , fns . keyBy ( projectConfig . typedAudiences , 'id' ) ) ;
49
48
You can’t perform that action at this time.
0 commit comments