Skip to content

Commit

Permalink
[js] Bank.tsx: oprava prace s najmem
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlukas committed Apr 30, 2020
1 parent 99c93e5 commit daff815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Bank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class Bank extends React.PureComponent<{}, State> {
render(): React.ReactNode {
const balance = this.state.bankDataApi.accountStatement.info.closingBalance
const RENT_PRICE = this.state.bankDataApi.rent_price
const isLackOfMoney = balance && RENT_PRICE && balance < RENT_PRICE
const isLackOfMoney = balance && RENT_PRICE !== null && balance < RENT_PRICE
return (
<ListGroup className="pageContent">
<ListGroupItem color={isLackOfMoney ? "danger" : "success"}>
Expand All @@ -126,7 +126,7 @@ export default class Bank extends React.PureComponent<{}, State> {
) : (
"načítání"
)}{" "}
{isLackOfMoney && RENT_PRICE && (
{isLackOfMoney && RENT_PRICE !== null && (
<>
<UncontrolledTooltipWrapper target="Bank_RentWarning">
Na účtu není dostatek peněz (alespoň{" "}
Expand Down

0 comments on commit daff815

Please sign in to comment.