From 9185648ed75d2d5f1ca9d19f980e15e66709b2c6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 8 Jan 2021 15:41:29 +0200 Subject: Removed unecessary age field from registerUserFormGroup --- .../src/app/components/register/register.component.ts | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/register/register.component.ts b/src/DevHive.Angular/src/app/components/register/register.component.ts index 3226833..2619353 100644 --- a/src/DevHive.Angular/src/app/components/register/register.component.ts +++ b/src/DevHive.Angular/src/app/components/register/register.component.ts @@ -26,11 +26,6 @@ export class RegisterComponent implements OnInit { Validators.required, Validators.minLength(3) ]], - age: [null, [ - Validators.required, - Validators.min(14), - Validators.max(120), - ]], username: ['', [ Validators.required, Validators.minLength(3) @@ -72,10 +67,6 @@ export class RegisterComponent implements OnInit { return this.registerUserFormGroup.get('lastName'); } - get age() { - return this.registerUserFormGroup.get('age'); - } - get username() { return this.registerUserFormGroup.get('username'); } -- cgit v1.2.3