fix: allow delete of last char while submitting

This commit is contained in:
Wentao Lyu 2023-03-18 01:24:35 +08:00
parent a90db1f1a4
commit ce78123369

View file

@ -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));
};