fix(bug): name field can be updated with spaces #555 (#558)

This commit is contained in:
Aditya Deshlahre
2023-10-19 06:42:56 +05:30
committed by GitHub
parent e3c3ec7825
commit 1d6f7f9e37
3 changed files with 3 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ export const SigningForm = ({ document, recipient, fields }: SigningFormProps) =
id="full-name"
className="bg-background mt-2"
value={fullName}
onChange={(e) => setFullName(e.target.value)}
onChange={(e) => setFullName(e.target.value.trimStart())}
/>
</div>