Fix condition.

This commit is contained in:
Alexis Lahouze 2017-07-21 22:42:16 +02:00
parent 220426e6f8
commit cc5b0b1ee1
1 changed files with 4 additions and 2 deletions

View File

@ -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;
};
/*