fix profile validator

This commit is contained in:
Kalle (Sendou)
2020-11-19 09:39:16 +02:00
parent 6e656bf3ac
commit b6e2f448c9

View File

@@ -15,7 +15,7 @@ const profileRootSchema = z.object({
.string()
.max(32)
.refine(
(val) => isNaN(Number(val)),
(val) => !val || isNaN(Number(val)),
"Name in the custom URL can't only contain numbers"
)
.optional()