Skip to content

Commit

Permalink
fix: account for array length (#4849)
Browse files Browse the repository at this point in the history
Small fix to account for array length in conditional check
  • Loading branch information
FredrikOseberg committed Sep 27, 2023
1 parent 7f2284a commit 46a78e3
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -131,7 +131,9 @@ export const StrategyChange: VFC<{
change.action === 'addStrategy' || change.action === 'updateStrategy';

const featureStrategyVariantsDisplay =
isStrategyAction && change.payload.variants ? (
isStrategyAction &&
change.payload.variants &&
change.payload.variants.length > 0 ? (
<StyledBox>
<StyledTypography>
Updating feature variants to:
Expand Down

0 comments on commit 46a78e3

Please sign in to comment.