diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile-editor.model.ts b/dmp-frontend/src/app/ui/user-profile/user-profile-editor.model.ts index f5fcd46b7..d5fe69071 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile-editor.model.ts +++ b/dmp-frontend/src/app/ui/user-profile/user-profile-editor.model.ts @@ -29,7 +29,7 @@ export class UserProfileEditorModel { const formGroup = new UntypedFormBuilder().group({ id: new UntypedFormControl(this.id), name: new UntypedFormControl(this.name), - language: new UntypedFormControl(this.language ? availableLanguages.filter(x => x.value === this.language.value).pop() : '', [Validators.required]), + language: new UntypedFormControl(this.language ? availableLanguages.filter(x => x === this.language).pop() : '', [Validators.required]), timezone: new UntypedFormControl(this.timezone, [Validators.required]), culture: new UntypedFormControl(this.culture, [Validators.required]), organization: new UntypedFormControl(this.organization), diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile.component.html b/dmp-frontend/src/app/ui/user-profile/user-profile.component.html index c8bb717cb..644698ab0 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile.component.html +++ b/dmp-frontend/src/app/ui/user-profile/user-profile.component.html @@ -16,7 +16,7 @@