Fix condition.
This commit is contained in:
parent
220426e6f8
commit
cc5b0b1ee1
@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user