no empty msg

This commit is contained in:
YasinOnm08 2024-09-24 10:22:50 +02:00
parent 8821836f3d
commit d037439b4c

View file

@ -113,6 +113,7 @@ const InputOutputBackend: React.FC = () => {
setMessages(previous => [...previous,{role,content}])
}
const handleSendClick = (inputValue: string) => {
if (inputValue != "") {
if (sendable) {
sendable=false
if (postWorkerRef.current) {
@ -123,6 +124,7 @@ const InputOutputBackend: React.FC = () => {
}
}
}
}
const handleMicClick = () => {
// do stuff