Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed incorrect implementation of GetFeatureResult call #26

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

Norhaven
Copy link
Collaborator

@Norhaven Norhaven commented Feb 3, 2024

The GrowthBook.GetFeatureValue<T>() call was incorrectly checking whether the feature was marked as On to determine whether or not to return the fallback value. This has been changed to only use a null check there instead, as per the spec.

This should fix #22.

@Norhaven Norhaven merged commit ea1f340 into main Feb 6, 2024
3 checks passed
@Norhaven Norhaven deleted the fixing-getfeaturevalue branch April 10, 2024 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue causing the app to always use the fallback when growthbook serves values like false, 0 or empty string
1 participant