forked from potsda.mn/mobilizon
8 lines
193 B
TypeScript
8 lines
193 B
TypeScript
export function validateEmailField(value: string) {
|
|
return value.includes('@') || 'Invalid e-mail.';
|
|
}
|
|
|
|
export function validateRequiredField(value: any) {
|
|
return !!value || 'Required.';
|
|
}
|