Skip to content

Commit

Permalink
feat: fix user auth
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Jul 24, 2023
1 parent 7aa82e6 commit 4aec981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type ChatProps = React.ComponentProps<'div'> & { initialMessages?: ChatMe
export default function Chat({ className }: ChatProps) {
const [bingStyle, setBingStyle] = useAtom(bingConversationStyleAtom)

const { messages, sendMessage, resetConversation, stopGenerating, setInput, input, generating } = useBing()
const { messages, sendMessage, resetConversation, stopGenerating, setInput, bot, input, generating } = useBing()

useEffect(() => {
window.scrollTo({
Expand All @@ -44,7 +44,7 @@ export default function Chat({ className }: ChatProps) {
<>
<ChatList messages={messages} />
<ChatScrollAnchor trackVisibility={generating} />
<ChatNotification message={messages.at(-1)} />
<ChatNotification message={messages.at(-1)} bot={bot} />
<ChatSuggestions setInput={setInput} suggestions={messages.at(-1)?.suggestedResponses} />

{generating ? (
Expand Down

0 comments on commit 4aec981

Please sign in to comment.