Skip to content

Commit d11224c

Browse files
authored
fix: Use flag value whenever provided even if variaiton is null or undefined. (#581)
1 parent ed5a206 commit d11224c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shared/sdk-client/src/LDClientImpl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,8 @@ export default class LDClientImpl implements LDClient {
545545
}
546546

547547
const successDetail = createSuccessEvaluationDetail(value, variation, reason);
548-
if (variation === undefined || variation === null) {
549-
this.logger.debug('Result value is null in variation');
548+
if (value === undefined || value === null) {
549+
this.logger.debug('Result value is null. Providing default value.');
550550
successDetail.value = defaultValue;
551551
}
552552
this.eventProcessor?.sendEvent(

0 commit comments

Comments
 (0)