diff --git a/src/main/java/com/primefactorsolutions/views/EmployeeView.java b/src/main/java/com/primefactorsolutions/views/EmployeeView.java index fe3ca60..0fcc551 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeeView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeeView.java @@ -184,7 +184,7 @@ public class EmployeeView extends BeanValidationForm implements HasUrl LocalDate selectedDate = event.getValue(); if (selectedDate != null && ChronoUnit.YEARS.between(selectedDate, LocalDate.now()) < 18) { birthday.setInvalid(true); - birthday.setErrorMessage("El empleado debe ser mayor de 18 años"); + birthday.setErrorMessage("El empleado debe ser mayor o tener 18 años"); } else { birthday.setInvalid(false); }