Skip to content

Commit

Permalink
fix: Casting number to string for useDecision() payload.
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Hancock <[email protected]>
  • Loading branch information
rijuma and zacharis278 authored Jul 11, 2024
1 parent cb402b8 commit c055843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useOptimizelyExperiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit c055843

Please sign in to comment.