webapp/src/components/Nav/AuthModal/validators.ts
2022-10-25 18:29:27 +02:00

8 lines
161 B
TypeScript

export const isValidEmail = (email: string) => {
if (!email) {
return false
}
return email.includes('@') && email.includes('.') && email.length > 5
}