Skip to content

Commit

Permalink
Fix TypeScript error in useChat
Browse files Browse the repository at this point in the history
Resolved the TypeScript error indicating that the property 'id' does not exist on the type returned from the createNewConversation function. Adjusted the code to correctly reference the conversationId property.
[skip gpt_engineer]
  • Loading branch information
lovable-dev[bot] committed Dec 22, 2024
1 parent c6cc970 commit affd3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useChat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const useChat = (userId: string | null) => {

if (!currentId) {
const newConversation = await createNewConversation(message)
currentId = newConversation.id
currentId = newConversation.conversationId
title = newConversation.title
}

Expand Down

0 comments on commit affd3f5

Please sign in to comment.