diff --git a/src/hooks/useOptimizelyExperiment.js b/src/hooks/useOptimizelyExperiment.js index 2db47e9f..c2393b19 100644 --- a/src/hooks/useOptimizelyExperiment.js +++ b/src/hooks/useOptimizelyExperiment.js @@ -11,7 +11,7 @@ const useOptimizelyExperiment = (flag) => { const dispatch = useDispatch(); const { userId } = getAuthenticatedUser(); - const [decision] = useDecision(flag, { autoUpdate: true }, { id: userId }); + const [decision] = useDecision(flag, { autoUpdate: true }, { id: userId.toString() }); const { active, variationKey } = decision || {}; useEffect(() => {