diff --git a/apps/web/src/components/forms/v2/signup.tsx b/apps/web/src/components/forms/v2/signup.tsx index 713bde4b4..dbf8fc6b4 100644 --- a/apps/web/src/components/forms/v2/signup.tsx +++ b/apps/web/src/components/forms/v2/signup.tsx @@ -119,8 +119,6 @@ export const SignUpFormV2 = ({ form.formState.dirtyFields.signature && form.formState.errors.signature === undefined; - console.log({ formSTate: form.formState }); - const { mutateAsync: signup } = trpc.auth.signup.useMutation(); const onFormSubmit = async ({ name, email, password, signature, url }: TSignUpFormV2Schema) => { diff --git a/packages/trpc/server/auth-router/router.ts b/packages/trpc/server/auth-router/router.ts index 3f199ac11..16b370b3e 100644 --- a/packages/trpc/server/auth-router/router.ts +++ b/packages/trpc/server/auth-router/router.ts @@ -25,7 +25,7 @@ export const authRouter = router({ const { name, email, password, signature, url } = input; - if ((true || IS_BILLING_ENABLED()) && url && url.length <= 6) { + if (IS_BILLING_ENABLED() && url && url.length < 6) { throw new AppError( AppErrorCode.PREMIUM_PROFILE_URL, 'Only subscribers can have a username shorter than 6 characters',