equinor / equinor/fusion-framework

Feature-flag enabled property is undefined.

Open
#1,780 0 comments 0 reactions 0 assignees View on GitHub
🏗️ framework 🐞 bug
Dominant language
TypeScript
Stars
10
Forks
10
Avg merge
19h 40m
Merged PRs (30d)
150

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.