FrederickSundeep commited on
Commit
5aa6c68
·
1 Parent(s): cff0a04

commit 021151

Browse files
Files changed (1) hide show
  1. src/components/ChatInput.jsx +1 -1
src/components/ChatInput.jsx CHANGED
@@ -4,7 +4,7 @@ export default function ChatInput({ onSend, fileUploaded }) {
4
  const [input, setInput] = useState("");
5
 
6
  const handleSubmit = () => {
7
- if (!input.trim()) return;
8
  onSend(input);
9
  setInput("");
10
  };
 
4
  const [input, setInput] = useState("");
5
 
6
  const handleSubmit = () => {
7
+ if (!input.trim() || !fileUploaded) return;
8
  onSend(input);
9
  setInput("");
10
  };