diff --git a/projects/go-lib/src/lib/components/go-form-errors/go-form-errors.component.ts b/projects/go-lib/src/lib/components/go-form-errors/go-form-errors.component.ts index ff187ffbc..7e9a6f123 100644 --- a/projects/go-lib/src/lib/components/go-form-errors/go-form-errors.component.ts +++ b/projects/go-lib/src/lib/components/go-form-errors/go-form-errors.component.ts @@ -25,7 +25,7 @@ export class GoFormErrorsComponent { */ errorString(k: string, v: any): string { const ngValidator: (...args: any) => string = this.goFormService.ngValidators[k]; - return ngValidator ? (typeof v === 'object') ? ngValidator(v) : v : v; + return ngValidator ? ngValidator(v) : v; } } diff --git a/projects/go-lib/src/lib/services/form.service.spec.ts b/projects/go-lib/src/lib/services/form.service.spec.ts index d757fb0b3..f539057ea 100644 --- a/projects/go-lib/src/lib/services/form.service.spec.ts +++ b/projects/go-lib/src/lib/services/form.service.spec.ts @@ -3,7 +3,7 @@ import { FormControl, Validators } from '@angular/forms'; import { GoFormService } from './form.service'; -fdescribe('GoFormService', () => { +describe('GoFormService', () => { let service: GoFormService; beforeEach(() => {