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

Feature-flag enabled property is undefined. #1780

Open
eikeland opened this issue Feb 1, 2024 · 0 comments
Open

Feature-flag enabled property is undefined. #1780

eikeland opened this issue Feb 1, 2024 · 0 comments
Labels
🐞 bug Something isn't working 🏗️ framework

Comments

@eikeland
Copy link
Contributor

eikeland commented Feb 1, 2024

Describe the bug
When getting the featureflag before any user interaction and nothing on local-storage the enabled property shows as undefined, it should always be a boolean.

{key: 'basic', title: 'Basic', enabled: undefined}

Environment

  • OS (windows, mac, linux)
  • Node Version 20

To Reproduce
Fire up the feature-flag cookbook, with no features in local-storage, and log out the features.

Expected behavior
The enabled property should always be a boolean.

@eikeland eikeland added 🐞 bug Something isn't working 🏗️ framework labels Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🏗️ framework
Projects
None yet
Development

No branches or pull requests

1 participant