diff --git a/packages/client/mutations/EndRetrospectiveMutation.ts b/packages/client/mutations/EndRetrospectiveMutation.ts index f087fbe1197..c44f0b85d88 100644 --- a/packages/client/mutations/EndRetrospectiveMutation.ts +++ b/packages/client/mutations/EndRetrospectiveMutation.ts @@ -128,7 +128,10 @@ export const endRetrospectiveTeamOnNext: OnNextHandler< } else { const reflections = reflectionGroups.flatMap((group) => group.reflections) // reflectionCount hasn't been calculated yet so check reflections length const hasMoreThanOneReflection = reflections.length > 1 - const hasOpenAISummary = hasMoreThanOneReflection && !organization.featureFlags.noAISummary + const hasOpenAISummary = + hasMoreThanOneReflection && + !organization.featureFlags.noAISummary && + window.__ACTION__.hasOpenAI const hasTeamHealth = phases.some((phase) => phase.phaseType === 'TEAM_HEALTH') const pathname = `/new-summary/${meetingId}` const search = new URLSearchParams()