Skip to content

Commit b4ef0df

Browse files
committed
refactor(webapp): simplify account email schema
1 parent cfdf29d commit b4ef0df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/webapp/app/utils/emailValidation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export const MAX_EMAIL_LENGTH = 254;
44

55
export const emailSchema = z
66
.string()
7-
.max(MAX_EMAIL_LENGTH, `Email must be ${MAX_EMAIL_LENGTH} characters or fewer`)
8-
.pipe(z.string().email());
7+
.email()
8+
.max(MAX_EMAIL_LENGTH, `Email must be ${MAX_EMAIL_LENGTH} characters or fewer`);

0 commit comments

Comments
 (0)