diff --git a/app/components/App/App.js b/app/components/App/App.js index f24089d3..1270a238 100644 --- a/app/components/App/App.js +++ b/app/components/App/App.js @@ -26,22 +26,15 @@ class App extends React.Component { receiveModalProps: PropTypes.object, channelFormProps: PropTypes.object, fetchInfo: PropTypes.func.isRequired, - fetchDescribeNetwork: PropTypes.func.isRequired, - fetchSuggestedNodes: PropTypes.func.isRequired + fetchDescribeNetwork: PropTypes.func.isRequired } componentDidMount() { - const { currentTicker, fetchInfo, fetchSuggestedNodes, fetchDescribeNetwork } = this.props - - // If we don't yet have any ticker information then it must be our first time mounting this component. - if (!currentTicker) { - // fetch node info. - fetchInfo() - // fetch suggested nodes list from zap.jackmallers.com/suggested-peers. - fetchSuggestedNodes() - // fetch LN network from nodes POV. - fetchDescribeNetwork() - } + const { fetchInfo, fetchDescribeNetwork } = this.props + // fetch node info. + fetchInfo() + // fetch LN network from nodes POV. + fetchDescribeNetwork() } render() { diff --git a/app/components/Contacts/Network/Network.js b/app/components/Contacts/Network/Network.js index edf08c50..db21d185 100644 --- a/app/components/Contacts/Network/Network.js +++ b/app/components/Contacts/Network/Network.js @@ -369,7 +369,9 @@ class Network extends Component { })} - {(loadingChannelPubkeys.length || pending_open_channels.length || channels.length) && ( + {Boolean( + loadingChannelPubkeys.length || pending_open_channels.length || channels.length + ) && (