Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit b01d1f4

Browse files
casesandbergbryanvu
authored andcommitted
Fetch Balance when Fetching Accounts
1 parent 351ef1c commit b01d1f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/lightning-core/common/Streams.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ export class Streams extends React.Component {
1212
if (this.props.serverRunning === false && nextProps.serverRunning === true) {
1313
this.props.onFetchAccount()
1414
this.props.onFetchChannels()
15+
this.props.onFetchBalances()
1516

1617
this.interval = setInterval(() => {
1718
// POLL
1819
this.props.onFetchAccount()
1920
this.props.onFetchChannels()
21+
this.props.onFetchBalances()
2022
}, 20000)
2123

2224
const fetchBalance = _.debounce(this.props.onFetchBalances, 2000)

0 commit comments

Comments
 (0)