diff --git a/components/chat/MessageInput.tsx b/components/chat/MessageInput.tsx index 0719674c9..16bcbbc30 100644 --- a/components/chat/MessageInput.tsx +++ b/components/chat/MessageInput.tsx @@ -38,7 +38,7 @@ const MessageInput: FC = ({ id, onSend, className }) => { useEffect(() => { setCurrentJobByUser(user, chatUser, setCurrentJob); - }, [chatUser, user?.userName]); + }, [chatUser, user]); useEffect(() => { setMentionedPeopleByPrompt(prompt, setMentionedPeople); diff --git a/components/ui-elements/editors/inbox-editor/useExtensions.ts b/components/ui-elements/editors/inbox-editor/useExtensions.ts index 9ffab28f1..dbcc705af 100644 --- a/components/ui-elements/editors/inbox-editor/useExtensions.ts +++ b/components/ui-elements/editors/inbox-editor/useExtensions.ts @@ -64,7 +64,7 @@ const useExtensions = (placeholder: string): EditorOptions["extensions"] => { }), LinkBubbleMenuHandler, ]; - }, []); + }, [placeholder]); return extensions; };