We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cccdf5 commit 0583306Copy full SHA for 0583306
source/views/sis/balances.js
@@ -49,19 +49,19 @@ class BalancesView extends React.Component {
49
50
refresh = async () => {
51
let start = Date.now()
52
- this.setState({loading: true})
+ this.setState(() => ({loading: true}))
53
54
await this.fetchData()
55
56
// wait 0.5 seconds – if we let it go at normal speed, it feels broken.
57
let elapsed = Date.now() - start
58
await delay(500 - elapsed)
59
60
- this.setState({loading: false})
+ this.setState(() => ({loading: false}))
61
}
62
63
fetchData = async () => {
64
- await Promise.all([this.props.updateBalances(true)])
+ await this.props.updateBalances(true)
65
66
67
openSettings = () => {
0 commit comments