We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5da2d98 + 0a7abb3 commit 3e0d42cCopy full SHA for 3e0d42c
lib/flagsmith/sdk/models/flags.rb
@@ -71,7 +71,7 @@ def from_feature_state_model(feature_state_model, identity_id)
71
def from_api(json_flag_data)
72
new(
73
enabled: json_flag_data[:enabled],
74
- value: json_flag_data[:feature_state_value] || json_flag_data[:value],
+ value: json_flag_data.fetch(:feature_state_value) { json_flag_data[:value] },
75
feature_name: json_flag_data.dig(:feature, :name),
76
feature_id: json_flag_data.dig(:feature, :id)
77
)
0 commit comments