mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-01 07:37:55 -05:00
fix profile validator
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user