Skip to content

Commit

Permalink
rename number to digits
Browse files Browse the repository at this point in the history
  • Loading branch information
duluca committed Nov 7, 2019
1 parent 408a4a0 commit 5266c9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/user/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ <h2 mat-subheader>Phone Number(s)
</mat-form-field>
<mat-form-field appearance="outline" fxFlex fxFlexOffset="10px">
<mat-label>Number</mat-label>
<input matInput type="text" formControlName="number"
<input matInput type="text" formControlName="digits"
mask="(000) 000-0000" prefix="+1" />
<mat-error *ngIf="this.phonesArray.controls[i].invalid">
A valid phone number is required
Expand Down
2 changes: 1 addition & 1 deletion src/app/user/profile/profile.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ProfileComponent extends BaseFormComponent<IUser>
return this.formBuilder.group({
id: [id],
type: [type || '', Validators.required],
number: [phoneNumber || '', USAPhoneNumberValidation],
digits: [phoneNumber || '', USAPhoneNumberValidation],
})
}

Expand Down

0 comments on commit 5266c9a

Please sign in to comment.