Rename item to account.

This commit is contained in:
Alexis Lahouze 2017-07-14 10:25:33 +02:00
parent c6a406272f
commit 5960e9ee77

View File

@ -51,9 +51,9 @@ export class AccountController {
load() { load() {
this.AccountService.query().subscribe(accounts => { this.AccountService.query().subscribe(accounts => {
this.accounts = accounts.map((item: Account) => { this.accounts = accounts.map((account: Account) => {
item.balances = this.AccountBalances.get({id: item.id}); account.balances = this.AccountBalances.get({id: account.id});
return item; return account;
}) })
}); });
}; };