Skip to content

Commit

Permalink
lib/optimizely/decision_service.rb -> Updated user profile tracker in…
Browse files Browse the repository at this point in the history
…itialization.
  • Loading branch information
FarhanAnjum-opti committed Jan 9, 2025
1 parent d9e36d2 commit 41c0abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/optimizely/decision_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_variation(project_config, experiment_id, user_context, user_profile_trac
#
# Returns variation ID where visitor will be bucketed
# (nil if experiment is inactive or user does not meet audience conditions)
user_profile_tracker = nil unless user_profile_tracker.is_a?(Optimizely::UserProfileTracker)
user_profile_tracker = UserProfileTracker.new(user_context.user_id, @user_profile_service, @logger) unless user_profile_tracker.is_a?(Optimizely::UserProfileTracker)
decide_reasons = []
decide_reasons.push(*reasons)
user_id = user_context.user_id
Expand Down

0 comments on commit 41c0abe

Please sign in to comment.