Fix condition.
This commit is contained in:
1 parent
220426e6f8
commit
cc5b0b1ee1
1 file changed
+4
-2
@@ -89,12 +89,14 @@ export class AccountRowComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get warning() {
|
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;
|
&& this.accountBalances.current < 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
get error() {
|
get error() {
|
||||||
return this.accountBalances.current < this.account.authorized_overdraft;
|
return this.account && this.accountBalances
|
||||||
|
&& this.accountBalances.current < this.account.authorized_overdraft;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in new issue
Block a user