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 Mythie
parent 19f1ddb8fe
commit b7950cf042
3 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ export const NameField = ({ field, recipient }: NameFieldProps) => {
type="text"
className="mt-2"
value={localFullName}
onChange={(e) => setLocalFullName(e.target.value)}
onChange={(e) => setLocalFullName(e.target.value.trimStart())}
/>
</div>