Skip to content

Commit

Permalink
Update forms.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratikshakhandagale authored Aug 22, 2023
1 parent 4cccae2 commit a9bf0ce
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions donor-registry/src/app/forms/forms.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,6 @@ export class FormsComponent implements OnInit {
(<HTMLInputElement>document.getElementById("aadhaarMasked")).disabled = true;
}


if (this.model.hasOwnProperty('aadhaar')) {
this.model['aadhaarMasked'] = 'XXXXXXXX' + this.model['aadhaar'].substring(8);
}

const relationPlaceholder3 = (<HTMLInputElement>document.getElementById("formly_155_enum_relation_1"));
if (relationPlaceholder3) {
const option = document.createElement('option');
Expand Down Expand Up @@ -341,11 +336,6 @@ export class FormsComponent implements OnInit {

if (document.getElementById("aadhaarMasked")) {
(<HTMLInputElement>document.getElementById("aadhaarMasked")).disabled = true;

}

if (this.model.hasOwnProperty('aadhaar')) {
this.model['aadhaarMasked'] = 'XXXXXXXX' + this.model['aadhaar'].substring(8);
}

let notReadOnly = localStorage.getItem('notReadOnly');
Expand Down Expand Up @@ -2304,6 +2294,11 @@ export class FormsComponent implements OnInit {
this.model = res;
this.identifier = res.osid;
}

if (this.model.hasOwnProperty('aadhaar')) {
this.model['aadhaarMasked'] = 'XXXXXXXX' + this.model['aadhaar'].substring(8);
}

this.loadSchema()
});

Expand Down

0 comments on commit a9bf0ce

Please sign in to comment.