diff --git a/src/accounts/accountRow.component.ts b/src/accounts/accountRow.component.ts index 7c42bf8..64a7dcc 100644 --- a/src/accounts/accountRow.component.ts +++ b/src/accounts/accountRow.component.ts @@ -89,12 +89,14 @@ export class AccountRowComponent implements OnInit { } get warning() { - return this.account.authorized_overdraft < this.accountBalances.current + return this.account && this.accountBalances + && this.account.authorized_overdraft < this.accountBalances.current && this.accountBalances.current < 0; }; get error() { - return this.accountBalances.current < this.account.authorized_overdraft; + return this.account && this.accountBalances + && this.accountBalances.current < this.account.authorized_overdraft; }; /*