Skip to content

Commit

Permalink
Fix translation comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZdorovenkoKyrylo committed Sep 27, 2023
1 parent 9db5a08 commit 84dd829
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ public class RegisterViewModelValidator : AbstractValidator<RegisterViewModel>
{
public RegisterViewModelValidator(IStringLocalizer<SharedResource> localizer)
{
RuleFor(x => x.DateOfBirth).Must(x => x == null)
RuleFor(x => x.DateOfBirth).Must(x => x != DateTime.MinValue)
.WithMessage(localizer["Check the entered data. This field DateOfBirth is required."]);

RuleFor(x => x.DateOfBirth)
.Must(BeAdult).When(x => !x.ProviderRegistration).WithMessage(localizer["You must be at least 18 years old."]);
}
Expand Down

0 comments on commit 84dd829

Please sign in to comment.