From 141fa7dadba7b07c28096c59b269fabfabb4068a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 16 Oct 2025 15:40:52 -0500 Subject: [PATCH] Remove unnecessary await --- src/components/Shakespeare/ChatInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Shakespeare/ChatInput.tsx b/src/components/Shakespeare/ChatInput.tsx index 1eb31a70..fe917d4b 100644 --- a/src/components/Shakespeare/ChatInput.tsx +++ b/src/components/Shakespeare/ChatInput.tsx @@ -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) => {