diff --git a/package-lock.json b/package-lock.json index 3f8e1f4..a0fa8e9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "flagsmith-nodejs", - "version": "5.0.0", + "version": "5.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "flagsmith-nodejs", - "version": "5.0.0", + "version": "5.0.1", "license": "MIT", "dependencies": { "pino": "^8.8.0", diff --git a/package.json b/package.json index bc69b54..7f3b134 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flagsmith-nodejs", - "version": "5.0.0", + "version": "5.0.1", "description": "Flagsmith lets you manage features flags and remote config across web, mobile and server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.", "main": "./build/cjs/index.js", "type": "module", diff --git a/sdk/models.ts b/sdk/models.ts index 176e3c0..cfa4104 100644 --- a/sdk/models.ts +++ b/sdk/models.ts @@ -54,7 +54,7 @@ export class Flag extends BaseFlag { static fromAPIFlag(flagData: any): Flag { return new Flag({ enabled: flagData['enabled'], - value: flagData['feature_state_value'] || flagData['value'], + value: flagData['feature_state_value'] ?? flagData['value'], featureId: flagData['feature']['id'], featureName: flagData['feature']['name'] });