diff --git a/src/components/widgets/shared/SummarySwitcher.tsx b/src/components/widgets/shared/SummarySwitcher.tsx index a79b283111..328ea78058 100644 --- a/src/components/widgets/shared/SummarySwitcher.tsx +++ b/src/components/widgets/shared/SummarySwitcher.tsx @@ -1,5 +1,3 @@ -'use client' - import { memo } from 'react' import type { FC } from 'react' import type { AiSummaryProps } from '../ai/Summary' @@ -27,7 +25,7 @@ export const SummarySwitcher: FC = memo((props) => { if (cid) comp = break case 'openai': - if (!process.env.OPENAI_API_KEY) return + if (!process.env.OPENAI_API_KEY) break if (data) comp = } }