Skip to content

Commit

Permalink
More clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
7emansell committed Nov 25, 2024
1 parent 6570b9f commit 0bcf57d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/MyAccount/NewSettings/UsernameForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ const UsernameForm = ({ patron, usernameState }: UsernameFormProps) => {
const { setUsernameStatus, setUsernameStatusMessage } = usernameState

const validateUsername = (username: string) => {
if (!(username.length > 4)) {
return false
}
const usernameRegex = /^[a-zA-Z0-9]{5,15}$/
return usernameRegex.test(username)
}
Expand Down

0 comments on commit 0bcf57d

Please sign in to comment.