covidwatchorg / portal

Covid Watch Portal web app for diagnosis verification
Apache License 2.0
8 stars 3 forks source link

prevent name change save of one char #493

Closed jcolla-holla closed 4 years ago

jcolla-holla commented 4 years ago

closes #490

Note that the user is able to delete all characters from the firstName and lastName fields but the store is only altered if the field has one or more characters. Meaning that a user can remove all characters, see an error message, but the name that is saved is a single character if they navigate away from the page.

I played with a few options like forcing a single character to remain in the input fields but this seemed like a bad UX if the user for some reason wants to delete all characters and start over, it prevents them from doing so and is a little jerky.

leon-i commented 4 years ago

Merged #493 into dev.