Skip to content

Commit

Permalink
fix(username): skip check userName availability for legacy users
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Sep 15, 2023
1 parent 360b0e7 commit 898fb6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Dialogs/SetUserNameDialog/InputStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ const InputStep: React.FC<Props> = ({ userName, gotoConfirm }) => {
userName: validateUserName(userName, lang),
}),
onSubmit: async ({ userName }, { setSubmitting, setFieldError }) => {
if (isLegacyUserConfirm) {
gotoConfirm(userName)
return
}

try {
const { data } = await client.query({
query: QUERY_USER_NAME,
Expand Down

0 comments on commit 898fb6d

Please sign in to comment.