Skip to content

Commit 511ffc3

Browse files
committed
Merge branch 'develop'
2 parents 859a9e1 + fb41d11 commit 511ffc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/email-field.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import { IsEmail } from './validators';
66
export const EmailField = (options: FieldOptions = {}) =>
77
applyDecorators(
88
Field(() => String, options),
9-
Transform(({ value }) => value?.toLowerCase()),
9+
Transform(({ value }) => (value ? value.toLowerCase() : value)),
1010
IsEmail(),
1111
);

0 commit comments

Comments
 (0)