Skip to content

Commit 6ed52e4

Browse files
[FSSDK-10766] option bug adjustment
1 parent a0b29dd commit 6ed52e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/optimizely/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,9 +1499,9 @@ export default class Optimizely implements Client {
14991499
return newErrorDecision(key, user, [DECISION_MESSAGES.SDK_NOT_READY]);
15001500
}
15011501

1502-
options.filter(option => option !== OptimizelyDecideOption.ENABLED_FLAGS_ONLY);
1502+
const filteredOptions = options.filter(option => option !== OptimizelyDecideOption.ENABLED_FLAGS_ONLY);
15031503

1504-
return this.decideForKeys(user, [key], options)[key];
1504+
return this.decideForKeys(user, [key], filteredOptions)[key];
15051505
}
15061506

15071507
/**

0 commit comments

Comments
 (0)