refacto page mon profile

This commit is contained in:
styve Lioumba
2025-11-15 17:30:09 +01:00
parent 620b781219
commit b669190bce
29 changed files with 1702 additions and 743 deletions

View File

@@ -35,10 +35,10 @@ export class UserFormComponent implements OnInit {
ngOnInit(): void {
this.userForm = this.fb.group({
firstname: new FormControl(this.user?.name!.split(' ').slice(0, -1).join(' ') ?? '', [
firstname: new FormControl(this.user?.name?.split(' ').slice(0, -1).join(' ') ?? '', [
Validators.required,
]),
name: new FormControl(this.user?.name!.split(' ').slice(-1)[0] ?? '', [Validators.required]),
name: new FormControl(this.user?.name?.split(' ').slice(-1)[0] ?? '', [Validators.required]),
});
}