Skip to content

Commit

Permalink
[js] oprava nezobrazovani chyby v Bank, odstraneni zbytecnych eslint …
Browse files Browse the repository at this point in the history
…disable

pri chybe se nezobrazil duvod chyby, zpusobeno spatnou migraci na TS
  • Loading branch information
rodlukas committed Mar 3, 2020
1 parent 28c99e9 commit 5a6f488
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/Bank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ export default class Bank extends React.PureComponent<{}, State> {
transaction: []
}
},
/* eslint-disable @typescript-eslint/camelcase */
fetch_timestamp: null,
rent_price: null,
status_info: undefined
/* eslint-enable @typescript-eslint/camelcase */
}

timeoutId: TimeoutType
Expand All @@ -68,7 +66,8 @@ export default class Bank extends React.PureComponent<{}, State> {
BankService.getAll().then(response => {
if (response.status !== 200)
this.setState({
bankDataApi: this.bankDataApiInit,
// z API dorazi jen status_info, provedeme merge se zbytkem init hodnot
bankDataApi: Object.assign(this.bankDataApiInit, response.data),
DATA_PROBLEM: true,
isLoading: false
})
Expand Down

0 comments on commit 5a6f488

Please sign in to comment.