diff --git a/web/src/render.tsx b/web/src/render.tsx index c508412..dcbf663 100644 --- a/web/src/render.tsx +++ b/web/src/render.tsx @@ -47,7 +47,9 @@ const PasteForm = () => { const handleSubmit = (event: React.FormEvent) => { event.preventDefault(); - encrypt_string(value); + if (value.trim() !== "") { + encrypt_string(value); + } } return (