Skip to content

Commit

Permalink
Merge pull request #838 from mobi/bug_form_error_messages
Browse files Browse the repository at this point in the history
[Bug] Form Error Messages
  • Loading branch information
grahamhency authored Sep 22, 2021
2 parents dbf1d9b + cea5941 commit 274c25e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
2 changes: 1 addition & 1 deletion projects/go-lib/src/lib/services/form.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FormControl, Validators } from '@angular/forms';

import { GoFormService } from './form.service';

fdescribe('GoFormService', () => {
describe('GoFormService', () => {
let service: GoFormService;

beforeEach(() => {
Expand Down

0 comments on commit 274c25e

Please sign in to comment.