From b4b2c45d50ae5fdf26621fe47735acdd3280eab3 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Sat, 13 Jan 2024 16:31:54 -0600 Subject: [PATCH] 8934-registration-add-an-affiliation-with-typeahead --- src/app/core/register2/register2.service.ts | 1 - .../form-current-employment.component.ts | 2 -- src/app/shared/validators/date/date.validator.ts | 4 +++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/core/register2/register2.service.ts b/src/app/core/register2/register2.service.ts index 3037803a45..627e8ed9bb 100644 --- a/src/app/core/register2/register2.service.ts +++ b/src/app/core/register2/register2.service.ts @@ -136,7 +136,6 @@ export class Register2Service extends _RegisterServiceMixingBase { ) ) .pipe( - retry(3), catchError((error) => this._errorHandler.handleError(error, ERROR_REPORT.REGISTER) diff --git a/src/app/register2/components/form-current-employment/form-current-employment.component.ts b/src/app/register2/components/form-current-employment/form-current-employment.component.ts index 2a69ffbde2..90440fdadd 100644 --- a/src/app/register2/components/form-current-employment/form-current-employment.component.ts +++ b/src/app/register2/components/form-current-employment/form-current-employment.component.ts @@ -198,7 +198,6 @@ export class FormCurrentEmploymentComponent extends BaseForm implements OnInit { ) } - get departmentNameIsInvalidAndTouched() { return ( this.form.hasError('maxlength', 'departmentName') && @@ -206,7 +205,6 @@ export class FormCurrentEmploymentComponent extends BaseForm implements OnInit { ) } - get roleTitleIsInvalidAndTouched() { return ( this.form.hasError('maxlength', 'roleTitle') && diff --git a/src/app/shared/validators/date/date.validator.ts b/src/app/shared/validators/date/date.validator.ts index dcec98c181..a10c835621 100644 --- a/src/app/shared/validators/date/date.validator.ts +++ b/src/app/shared/validators/date/date.validator.ts @@ -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 || {}