Skip to content

Commit

Permalink
Remove default null return from useOptimizelyVariation hook (#12205)
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore108 authored Nov 25, 2024
1 parent 1fa51ef commit c4c8e6d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/hooks/useOptimizelyVariation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ const useOptimizelyVariation = (
}
}, [isClientReady, decision.variationKey, didTimeout]);

// Optimizely sets 'off' as the default variation if a flag is not enabled.
if (variation === 'off') return null;

return variation;
}

Expand Down

0 comments on commit c4c8e6d

Please sign in to comment.