Skip to content

Commit 6ec39b1

Browse files
authored
♻️ Add log for AB test (#1372)
Co-authored-by: Benjamin Arias <12382534+bjlaa@users.noreply.github.com>
1 parent 9ed4cfa commit 6ec39b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hooks/abTesting/useIsTestVersion.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { useFeatureFlagVariantKey } from 'posthog-js/react'
44
export const useIsTestVersion = (variantKey: string) => {
55
const flagValue = useFeatureFlagVariantKey(variantKey)
66

7+
console.log('AB test : ', flagValue, ' selected for', variantKey)
8+
79
// Disable the AB testing in the preview environments
810
if (
911
process.env.NEXT_PUBLIC_ENV !== 'production' &&

0 commit comments

Comments
 (0)