fix: allow delete of last char while submitting
This commit is contained in:
@@ -317,9 +317,9 @@ export default function TextChat({ messages }) {
|
||||
const changeHandler = (e) => {
|
||||
const { value } = e.target;
|
||||
|
||||
if (isSubmitting && (value === '' || value === '\n')) {
|
||||
return;
|
||||
}
|
||||
// if (isSubmitting && (value === '' || value === '\n')) {
|
||||
// return;
|
||||
// }
|
||||
dispatch(setText(value));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user