Skip to content

Commit fe28f5b

Browse files
committed
fix: ai summary switcher
Signed-off-by: Innei <[email protected]>
1 parent cb26a80 commit fe28f5b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/widgets/shared/SummarySwitcher.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use client'
2-
31
import { memo } from 'react'
42
import type { FC } from 'react'
53
import type { AiSummaryProps } from '../ai/Summary'
@@ -27,7 +25,7 @@ export const SummarySwitcher: FC<AiSummaryProps> = memo((props) => {
2725
if (cid) comp = <XLogSummaryAsync cid={cid} />
2826
break
2927
case 'openai':
30-
if (!process.env.OPENAI_API_KEY) return
28+
if (!process.env.OPENAI_API_KEY) break
3129
if (data) comp = <AISummary data={data} />
3230
}
3331
}

0 commit comments

Comments
 (0)