Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jan 5, 2024
1 parent 6aca321 commit 79b4885
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions posthog-node/src/posthog-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ export class PostHog extends PostHogCoreStateless implements PostHogNodeV1 {
const additionalProperties: Record<string, any> = {}
if (flags) {
for (const [feature, variant] of Object.entries(flags)) {
if (variant !== false) {
additionalProperties[`$feature/${feature}`] = variant
}
additionalProperties[`$feature/${feature}`] = variant
}
}
const activeFlags = Object.keys(flags || {}).filter((flag) => flags?.[flag] !== false)
Expand Down

0 comments on commit 79b4885

Please sign in to comment.