Fix password change detection on profile edit (#5028)

This commit is contained in:
shamoon 2023-12-17 13:36:17 -08:00 committed by GitHub
parent fdaf90b46b
commit ba3c4152ce
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import {
NgbAccordionModule,
NgbActiveModal,
NgbModal,
NgbModalModule,
} from '@ng-bootstrap/ng-bootstrap'
import { HttpClientModule } from '@angular/common/http'

View File

@ -130,7 +130,8 @@ export class ProfileEditDialogComponent implements OnInit, OnDestroy {
}
save(): void {
const passwordChanged = this.currentPassword !== this.newPassword
const passwordChanged =
this.newPassword && this.currentPassword !== this.newPassword
const profile = Object.assign({}, this.form.value)
this.networkActive = true
this.profileService