diff --git a/src/main.tsx b/src/main.tsx index 211ef76..ca22268 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -265,8 +265,9 @@ const App = () => { const handleSubmit = useCallback( async (e: React.FormEvent) => { e.preventDefault() - await processInput(inputText) + const input = inputText.trim() setInputText('') + await processInput(input) }, [inputText, processInput] )