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.
1 parent 3d04ec7 commit cb3469eCopy full SHA for cb3469e
1 file changed
sdk/models.ts
@@ -54,7 +54,7 @@ export class Flag extends BaseFlag {
54
static fromAPIFlag(flagData: any): Flag {
55
return new Flag({
56
enabled: flagData['enabled'],
57
- value: flagData['feature_state_value'] || flagData['value'],
+ value: flagData['feature_state_value'] ?? flagData['value'],
58
featureId: flagData['feature']['id'],
59
featureName: flagData['feature']['name']
60
});
0 commit comments