Skip to content

Commit 2826ef2

Browse files
authored
Fix evaluation against the number value 0 (#143)
1 parent bf14b9e commit 2826ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/experiment-core/src/evaluation/evaluation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export class EvaluationEngine {
403403
}
404404

405405
private coerceString(value: unknown | undefined): string | undefined {
406-
if (!value) {
406+
if (value === undefined || value === null) {
407407
return undefined;
408408
}
409409
if (typeof value === 'object') {

0 commit comments

Comments
 (0)