WEB-639: Refactor redundant boolean comparisons (#3063)

improve

improve

improve

improve
This commit is contained in:
Shubham Kumar
2026-01-31 07:07:59 -06:00
committed by GitHub
parent 41a71cd269
commit fbee49b464
55 changed files with 190 additions and 193 deletions
@@ -187,7 +187,7 @@ export class CreateUserComponent implements OnInit, AfterViewInit {
delete user.staffId;
}
this.usersService.createUser(user).subscribe((response: any) => {
if (this.configurationWizardService.showUsersForm === true) {
if (this.configurationWizardService.showUsersForm) {
this.configurationWizardService.showUsersForm = false;
this.openDialog();
} else {
@@ -222,7 +222,7 @@ export class CreateUserComponent implements OnInit, AfterViewInit {
* To show popover.
*/
ngAfterViewInit() {
if (this.configurationWizardService.showUsersForm === true) {
if (this.configurationWizardService.showUsersForm) {
setTimeout(() => {
this.showPopover(this.templateUserFormRef, this.userFormRef.nativeElement, 'top', true);
});