Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit d524d8c

Browse files
authored
Fix: feature flags default value
1 parent a0792c0 commit d524d8c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/utils/feature-flags.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,12 @@ function getFeatureFlags() {
1919
}
2020

2121
export function isFF(id) {
22-
return getFeatureFlags()[id] === window.APP_SETTINGS?.feature_flags_default_value;
22+
const featureFlags = getFeatureFlags();
23+
24+
if (id in featureFlags) {
25+
return featureFlags[id] === true;
26+
}
27+
else {
28+
return window.APP_SETTINGS?.feature_flags_default_value === true;
29+
}
2330
}

0 commit comments

Comments
 (0)