Skip to content

Commit 98ae307

Browse files
committed
fix: remove redundant async
1 parent 633eea1 commit 98ae307

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const RouteComponent = () => {
2424
// check if username exists
2525

2626
const exisitingUsername = await axios.get(`/v1/users/check-username/${encodeURIComponent(data.username)}`);
27+
2728
if (exisitingUsername) {
2829
return { success: false, errorMessage: t('common.usernameExists') };
2930
}
@@ -147,7 +148,7 @@ const RouteComponent = () => {
147148
groupIds: z.set(z.string()).optional(),
148149
confirmPassword: z.string().min(1)
149150
})
150-
.check(async (ctx) => {
151+
.check((ctx) => {
151152
if (!estimatePasswordStrength(ctx.value.password).success) {
152153
ctx.issues.push({
153154
code: 'custom',

0 commit comments

Comments
 (0)