Skip to content

Commit 70150b4

Browse files
committed
Remove unneccessary initilization
1 parent 1d0fc2b commit 70150b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/src/hooks/useChat.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ export default function useChat() {
1717
const { createChat } = useChatCreate({});
1818
const { deleteChat } = useChatDelete({});
1919

20-
const [activeConversation, setActiveConversation] = useState(
21-
chats.find((c) => c.id === activeConversationId) || null
22-
);
20+
const [activeConversation, setActiveConversation] =
21+
useState<Conversation | null>(null);
2322

2423
const optimisticAddMessage = useCallback((content: string) => {
2524
const newMessage: Message = {

0 commit comments

Comments
 (0)