Skip to content

Commit

Permalink
8934-registration-add-an-affiliation-with-typeahead
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Mendoza Fernadez authored and Leonardo Mendoza Fernadez committed Jan 13, 2024
1 parent 7817a86 commit b4b2c45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/app/core/register2/register2.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export class Register2Service extends _RegisterServiceMixingBase {
)
)
.pipe(

retry(3),
catchError((error) =>
this._errorHandler.handleError(error, ERROR_REPORT.REGISTER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,15 +198,13 @@ export class FormCurrentEmploymentComponent extends BaseForm implements OnInit {
)
}


get departmentNameIsInvalidAndTouched() {
return (
this.form.hasError('maxlength', 'departmentName') &&
(this.form.get('departmentName').touched || this.nextButtonWasClicked)
)
}


get roleTitleIsInvalidAndTouched() {
return (
this.form.hasError('maxlength', 'roleTitle') &&
Expand Down
4 changes: 3 additions & 1 deletion src/app/shared/validators/date/date.validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export function dateMonthYearValidator(dateType: string) {
}
}

export function endDateMonthYearValidator(): (c: AbstractControl) => { [key: string]: any } {
export function endDateMonthYearValidator(): (c: AbstractControl) => {
[key: string]: any
} {
return (c: AbstractControl): { [key: string]: any } | null => {
const endDateExistingErrors = Object.keys(
c.get('endDateGroup').errors || {}
Expand Down

0 comments on commit b4b2c45

Please sign in to comment.