Modified user.component and user.service to be able to use default profile image (#22)
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user