Skip to content

Commit

Permalink
Merge pull request #3993 from thematters/fix/forbid-username-uppercase
Browse files Browse the repository at this point in the history
fix(SetUserNameDialog):fix user name input rule
  • Loading branch information
wlliaml authored Nov 9, 2023
2 parents 1c5f530 + 2b6e84d commit 7704f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Dialogs/SetUserNameDialog/InputStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const InputStep: React.FC<Props> = ({ userName, gotoConfirm }) => {
}}
onKeyUp={() => {
const v = normalizeUserName(values.mattersID)
setFieldValue('userName', v.slice(0, maxUsername))
setFieldValue('mattersID', v.slice(0, maxUsername))
}}
leftButton={<span className={styles.atFlag}>@</span>}
hasFooter={false}
Expand Down

1 comment on commit 7704f44

@vercel
Copy link

@vercel vercel bot commented on 7704f44 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.