diff --git a/src/accounts/account.controller.ts b/src/accounts/account.controller.ts index ad8fc46..9272511 100644 --- a/src/accounts/account.controller.ts +++ b/src/accounts/account.controller.ts @@ -51,9 +51,9 @@ export class AccountController { load() { this.AccountService.query().subscribe(accounts => { - this.accounts = accounts.map((item: Account) => { - item.balances = this.AccountBalances.get({id: item.id}); - return item; + this.accounts = accounts.map((account: Account) => { + account.balances = this.AccountBalances.get({id: account.id}); + return account; }) }); };