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 5010cc6f15
commit 6ee2d023d5
2 changed files with 2 additions and 2 deletions

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