launchdarkly / react-client-sdk

LaunchDarkly Client-side SDK for React.js
Other
79 stars 67 forks source link

check if the original flags object has the flag, not just the camelca… #181

Closed ajmers closed 1 year ago

ajmers commented 1 year ago

…sed keys map

Requirements

Related issues

https://github.com/launchdarkly/react-client-sdk/issues/180

Describe the solution you've provided

When checking to see if the flag is contained in the set of available flags, don't just check the flagKeyMap which is only available if camelCaseKeys are used; also check the original flag keys and if the key is in there, continue on to variation().

Describe alternatives you've considered

Provide a clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context about the pull request here.

yusinto commented 1 year ago

This fix have been applied and released in 3.0.3. Thanks @ajmers for your contribution.