fix: fix for Accepting signatures or text fields with white space only #551 (#557)

This commit is contained in:
Abhinav-Developer-23
2023-10-16 14:38:45 +05:30
committed by Mythie
parent 352e4f81fd
commit 4b2fec305f
4 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ import { claimPlan } from '~/api/claim-plan/fetcher';
import { FormErrorMessage } from '../form/form-error-message';
export const ZClaimPlanDialogFormSchema = z.object({
name: z.string().min(3),
name: z.string().trim().min(3, { message: 'Please enter a valid name.' }),
email: z.string().email(),
});