Spaces:
Running
Running
Commit ·
9ea3b5e
1
Parent(s): c70ad0c
commit 021111112
Browse files
src/components/ChatInput.jsx
CHANGED
|
@@ -14,8 +14,8 @@ export default function ChatInput({ onSend, fileUploaded }) {
|
|
| 14 |
}, [fileUploaded]);
|
| 15 |
|
| 16 |
// Disable input if no file uploaded
|
| 17 |
-
const isInputDisabled =
|
| 18 |
-
const isButtonDisabled =
|
| 19 |
return (
|
| 20 |
<div className="chat-input">
|
| 21 |
<input
|
|
|
|
| 14 |
}, [fileUploaded]);
|
| 15 |
|
| 16 |
// Disable input if no file uploaded
|
| 17 |
+
const isInputDisabled = fileUploaded;
|
| 18 |
+
const isButtonDisabled = fileUploaded || !input.trim();
|
| 19 |
return (
|
| 20 |
<div className="chat-input">
|
| 21 |
<input
|