We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4fc07 commit 8867e7cCopy full SHA for 8867e7c
1 file changed
apps/web/src/routes/_app/admin/users/create.tsx
@@ -23,9 +23,9 @@ const RouteComponent = () => {
23
const handleSubmit: FormProps<any>['onSubmit'] = async (data: CreateUserData) => {
24
// check if username exists
25
26
- const exisitingUsername = await axios.get(`/v1/users/check-username/${encodeURIComponent(data.username)}`);
+ const existingUsername = await axios.get(`/v1/users/check-username/${encodeURIComponent(data.username)}`);
27
28
- if (exisitingUsername) {
+ if (existingUsername) {
29
return { success: false, errorMessage: t('common.usernameExists') };
30
}
31
0 commit comments