Skip to content

Conversation

@hsouth95
Copy link

I had an issue when using this form where I tried to paste in my athelete ID number and was just going to manually add the 'A' at the beginning. In order to fix this, I've side-stepped the validation and just manually prepended the 'A'.

An alternative approach is to move the validation to the handleOpenProfile and show a custom warning for this field.

Pasted values could be ignored if not in the correct format which was
a pain for users. This change just manually adds the 'A' if it doesn't exist
to ensure a better user experience.
@vercel
Copy link

vercel bot commented Jun 15, 2024

@hsouth95 is attempting to deploy a commit to the sargant's projects Team on Vercel.

A member of the Team first needs to authorize it.

@sargant
Copy link
Owner

sargant commented Jan 4, 2025

Sorry I hadn't seen this - not been receiving GitHub emails for months, not sure why!

A good idea, but this logic currently prepends "A" to anything you paste. I'm going to take a look at refactoring this whole app soon and will keep this in mind - all I've done the past couple of years is update the certificates on an annual basis, but I'll keep the MR open as a reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants