Skip to content

Commit 8867e7c

Browse files
committed
fix: fix variable typo
1 parent 7f4fc07 commit 8867e7c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/routes/_app/admin/users/create.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const RouteComponent = () => {
2323
const handleSubmit: FormProps<any>['onSubmit'] = async (data: CreateUserData) => {
2424
// check if username exists
2525

26-
const exisitingUsername = await axios.get(`/v1/users/check-username/${encodeURIComponent(data.username)}`);
26+
const existingUsername = await axios.get(`/v1/users/check-username/${encodeURIComponent(data.username)}`);
2727

28-
if (exisitingUsername) {
28+
if (existingUsername) {
2929
return { success: false, errorMessage: t('common.usernameExists') };
3030
}
3131

0 commit comments

Comments
 (0)