Fix promise error handling.

This commit is contained in:
Alexis Lahouze 2017-07-21 00:33:27 +02:00
parent d91089238d
commit d522aaad45
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ export class AccountListComponent {
modal.result.then((account: Account) => {
this.delete(account);
}, (reason) => function(reason) {
});
};
@ -157,6 +158,7 @@ export class AccountListComponent {
modal.result.then((account: Account) => {
this.Logger.log("Modal closed => save account", account);
this.save(account);
}, (reason) => function(reason) {
});
};
};