Skip to content

Commit

Permalink
fix: ai summary switcher
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Aug 26, 2023
1 parent cb26a80 commit fe28f5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/widgets/shared/SummarySwitcher.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use client'

import { memo } from 'react'
import type { FC } from 'react'
import type { AiSummaryProps } from '../ai/Summary'
Expand Down Expand Up @@ -27,7 +25,7 @@ export const SummarySwitcher: FC<AiSummaryProps> = memo((props) => {
if (cid) comp = <XLogSummaryAsync cid={cid} />
break
case 'openai':
if (!process.env.OPENAI_API_KEY) return
if (!process.env.OPENAI_API_KEY) break
if (data) comp = <AISummary data={data} />
}
}
Expand Down

1 comment on commit fe28f5b

@vercel
Copy link

@vercel vercel bot commented on fe28f5b Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
springtide.vercel.app
shiro-innei.vercel.app
innei.in

Please sign in to comment.