remove fixed true condition

from auth signup router
This commit is contained in:
McPizza
2024-03-01 11:27:24 +00:00
committed by GitHub
parent bfb1c65f98
commit e5fe3d897d

View File

@ -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',