mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
♻️ Replace min() with nonempty() (#1397)
This commit is contained in:
parent
9af5b696c8
commit
28762f19aa
1 changed files with 2 additions and 2 deletions
|
@ -19,13 +19,13 @@ import VoteIcon from "./poll/vote-icon";
|
|||
|
||||
const requiredEmailSchema = z.object({
|
||||
requireEmail: z.literal(true),
|
||||
name: z.string().nonempty().max(100),
|
||||
name: z.string().min(1).max(100),
|
||||
email: z.string().email(),
|
||||
});
|
||||
|
||||
const optionalEmailSchema = z.object({
|
||||
requireEmail: z.literal(false),
|
||||
name: z.string().nonempty().max(100),
|
||||
name: z.string().min(1).max(100),
|
||||
email: z.string().email().or(z.literal("")),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue