Remove unused slash command-related useeffect hook

This commit is contained in:
sabaimran
2024-07-10 10:03:58 +05:30
parent e1a5c17775
commit c5cfd0f2cf

View File

@@ -69,12 +69,6 @@ function ChatInputArea(props: ChatInputProps) {
const [progressValue, setProgressValue] = useState(0);
useEffect(() => {
if (message.startsWith('/')) {
const command = message.split(' ')[0].substring(1);
}
}, [message]);
useEffect(() => {
if (!uploading) {
setProgressValue(0);