fix: added the zod validation msg in the single player mode (#646)

This commit is contained in:
Anupam
2023-11-17 18:13:42 +05:45
committed by GitHub
parent 7ce4cf8381
commit e077c36fe4

View File

@ -1,7 +1,10 @@
import { z } from 'zod';
export const ZAddSignatureFormSchema = z.object({
email: z.string().min(1).email(),
email: z
.string()
.min(1, { message: 'Email is required' })
.email({ message: 'Invalid email address' }),
name: z.string(),
signature: z.string(),
});