Remove unnecessary await

This commit is contained in:
Alex Gleason committed 2025-10-16 15:40:52 -05:00
1 parent 1ef930557b
commit 141fa7dadb
1 file changed
+2 -2
+2 -2
View File
@@ -63,7 +63,7 @@ export const ChatInput = memo(function ChatInput({
setAttachedFiles(prev => prev.filter(file => file !== fileToRemove));
}, []);
const handleSend = useCallback(async () => {
const handleSend = useCallback(() => {
if ((!input.trim() && attachedFiles.length === 0) || isLoading) return;
if (!isConfigured || !providerModel.trim()) return;
@@ -73,7 +73,7 @@ export const ChatInput = memo(function ChatInput({
setInput('');
setAttachedFiles([]);
await onSend(currentInput, currentFiles);
onSend(currentInput, currentFiles);
}, [input, attachedFiles, isLoading, isConfigured, providerModel, onSend]);
const handleKeyDown = useCallback((e: React.KeyboardEvent) => {