Skip to content

Commit

Permalink
fix: updating logic to show the view recording button in the feature …
Browse files Browse the repository at this point in the history
…flag page (#26451)
  • Loading branch information
surbhi-posthog authored Nov 27, 2024
1 parent 54c7435 commit 3305554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/scenes/feature-flags/FeatureFlag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export function FeatureFlag({ id }: { id?: string } = {}): JSX.Element {
</div>
</div>
<LemonDivider />
<FeatureFlagRollout id={id} />
<FeatureFlagRollout />
<LemonDivider />
<FeatureFlagReleaseConditions
id={`${featureFlag.id}`}
Expand Down Expand Up @@ -724,7 +724,7 @@ function variantConcatWithPunctuation(phrases: string[]): string {
return `${phrases[0]} and ${phrases.length - 1} more sets`
}

function FeatureFlagRollout({ readOnly, id }: { readOnly?: boolean; id?: string }): JSX.Element {
function FeatureFlagRollout({ readOnly }: { readOnly?: boolean }): JSX.Element {
const {
multivariateEnabled,
variants,
Expand Down Expand Up @@ -989,7 +989,7 @@ function FeatureFlagRollout({ readOnly, id }: { readOnly?: boolean; id?: string
</div>
)}
</div>
{id !== 'new' && (
{readOnly && (
<div>
<h3 className="l3">Recordings</h3>
<p>Watch recordings of people who have been exposed to the feature flag.</p>
Expand Down

0 comments on commit 3305554

Please sign in to comment.