add on error callback
This commit is contained in:
parent
b0a156ce17
commit
9ffa86f3cb
|
@ -323,7 +323,7 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes
|
|||
this.userService.removeCredentialAccount({ credentialId: userCredential.user.id }).subscribe(result => {
|
||||
//TODO
|
||||
},
|
||||
error => console.error(error));
|
||||
error => this.onCallbackError(error));
|
||||
|
||||
//TODO: refactor
|
||||
// const unlinkAccountModel: UnlinkAccountRequestModel = {
|
||||
|
@ -373,7 +373,7 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes
|
|||
});
|
||||
}
|
||||
},
|
||||
error => console.error(error)); //TODO how to handle this
|
||||
error => this.onCallbackError(error)); //TODO how to handle this
|
||||
|
||||
|
||||
//TODO refactor
|
||||
|
|
Loading…
Reference in New Issue