Skip to content

Commit 466c7f8

Browse files
pamelafoxCopilot
andauthored
Update app/frontend/src/components/QuestionInput/QuestionInput.tsx
Co-authored-by: Copilot <[email protected]>
1 parent c551c3c commit 466c7f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/frontend/src/components/QuestionInput/QuestionInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ export const QuestionInput = ({ onSend, disabled, placeholder, clearOnSend, init
5656
setIsComposing(false);
5757
};
5858

59-
const onQuestionChange = (_ev: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string) => {
60-
if (!newValue) {
6159
setQuestion("");
60+
} else {
61+
setQuestion(newValue);
6262
}
6363
};
6464

0 commit comments

Comments
 (0)