From ce78123369c64a3e97682fbe552f859800f5f445 Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Sat, 18 Mar 2023 01:24:35 +0800 Subject: [PATCH] fix: allow delete of last char while submitting --- client/src/components/Main/TextChat.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/Main/TextChat.jsx b/client/src/components/Main/TextChat.jsx index 0038f37a7a..969a6222ac 100644 --- a/client/src/components/Main/TextChat.jsx +++ b/client/src/components/Main/TextChat.jsx @@ -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)); };