Don't submit empty strings
This commit is contained in:
parent
50e76ae3a0
commit
600d04eba9
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@ const PasteForm = () => {
|
|||
|
||||
const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
|
||||
event.preventDefault();
|
||||
encrypt_string(value);
|
||||
if (value.trim() !== "") {
|
||||
encrypt_string(value);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue