add on error callback

This commit is contained in:
Efstratios Giannopoulos 2024-05-13 14:04:24 +03:00
parent b0a156ce17
commit 9ffa86f3cb
1 changed files with 21 additions and 21 deletions

View File

@ -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