Skip to content

Commit

Permalink
hide user conflict notification (ohcnetwork#6869)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Dec 15, 2023
1 parent 08740cd commit b7af525
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Components/Users/UserAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export const UserAdd = (props: UserProps) => {
setUsernameExists(userExistsEnums.checking);
const { res: usernameCheck } = await request(routes.checkUsername, {
pathParams: { username },
silent: true,
});
if (usernameCheck === undefined || usernameCheck.status === 409)
setUsernameExists(userExistsEnums.exists);
Expand Down

0 comments on commit b7af525

Please sign in to comment.