Skip to content

Commit

Permalink
fix control variant conditioning for term-savings
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskmnds committed Nov 22, 2024
1 parent 202d35a commit 3090e5f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const useLongerPlanTermDefaultExperiment = (): {
return {
isLoadingExperiment: isLoadingExperimentAssignment,
term: isLoadingExperimentAssignment ? undefined : term,
isEligibleForTermSavings: experimentAssignment?.variationName !== 'control',
isEligibleForTermSavings: !! (
experimentAssignment?.variationName && experimentAssignment.variationName !== 'control'
),
};
};

Expand Down

0 comments on commit 3090e5f

Please sign in to comment.