Modified user.component and user.service to be able to use default profile image (#22)

This commit is contained in:
Art
2021-09-21 16:02:15 +03:00
parent 78c3c05be2
commit 8c60c2b1e9
2 changed files with 8 additions and 7 deletions

View File

@ -77,8 +77,7 @@ export class UserComponent implements OnInit, OnDestroy {
}
public onAddNewUser(userForm: NgForm): void {
// TODO: test if profileImage is null (we are not passing it)
let formData = this.userService.createUserFormData('', userForm.value, this.profileImage!);
let formData = this.userService.createUserFormData(null, userForm.value, this.profileImage);
let subscription = this.userService.addUser(formData)
.subscribe(
(user: User) => {