forked from React-Group/interstellar_ai
no empty msg
This commit is contained in:
parent
8821836f3d
commit
d037439b4c
1 changed files with 9 additions and 7 deletions
|
@ -113,6 +113,7 @@ const InputOutputBackend: React.FC = () => {
|
||||||
setMessages(previous => [...previous,{role,content}])
|
setMessages(previous => [...previous,{role,content}])
|
||||||
}
|
}
|
||||||
const handleSendClick = (inputValue: string) => {
|
const handleSendClick = (inputValue: string) => {
|
||||||
|
if (inputValue != "") {
|
||||||
if (sendable) {
|
if (sendable) {
|
||||||
sendable=false
|
sendable=false
|
||||||
if (postWorkerRef.current) {
|
if (postWorkerRef.current) {
|
||||||
|
@ -123,6 +124,7 @@ const InputOutputBackend: React.FC = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const handleMicClick = () => {
|
const handleMicClick = () => {
|
||||||
// do stuff
|
// do stuff
|
||||||
|
|
Loading…
Reference in a new issue