Skip to content

Commit

Permalink
Merge pull request #496 from sunbird-cb/signout
Browse files Browse the repository at this point in the history
Task #58821: NA scenario Fix
  • Loading branch information
christyfernandes authored Jul 8, 2022
2 parents ccdeb0e + 45e5024 commit d7ec1d9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/app/routes/public/public-signup/public-signup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,19 @@ export class PublicSignupComponent implements OnInit, OnDestroy {
if (value) {
this.fetchDropDownValues(value)
}
})
})

// tslint:disable-next-line: no-non-null-assertion
this.registrationForm.get('department')!.valueChanges.subscribe((value: any) => {
if (!value) {
this.orgRequired = false
// tslint:disable-next-line: no-non-null-assertion
this.registrationForm.get('organisation')!.setValidators([forbiddenNamesValidator(this.orgs)])
// tslint:disable-next-line: no-non-null-assertion
this.registrationForm.get('organisation')!.setValue('')
this.registrationForm.updateValueAndValidity()
}
})
}

get typeValueStartCase() {
Expand Down

0 comments on commit d7ec1d9

Please sign in to comment.