Browse Source

Merge pull request #573 from mrfelton/fix/boolean-conditional-display

fix: ensure conditional display uses boolean
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
a72e84d109
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/components/Contacts/Network.js

4
app/components/Contacts/Network.js

@ -209,7 +209,7 @@ class Network extends Component {
)} )}
<ul className={filterPulldown && styles.fade}> <ul className={filterPulldown && styles.fade}>
{loadingChannelPubkeys.length && {loadingChannelPubkeys.length > 0 &&
loadingChannelPubkeys.map(loadingPubkey => { loadingChannelPubkeys.map(loadingPubkey => {
// TODO(jimmymow): refactor this out. same logic is in displayNodeName above // TODO(jimmymow): refactor this out. same logic is in displayNodeName above
const node = nodes.find(n => loadingPubkey === n.pub_key) const node = nodes.find(n => loadingPubkey === n.pub_key)
@ -232,7 +232,7 @@ class Network extends Component {
</li> </li>
) )
})} })}
{currentChannels.length && {currentChannels.length > 0 &&
currentChannels.map((channelObj, index) => { currentChannels.map((channelObj, index) => {
const channel = Object.prototype.hasOwnProperty.call(channelObj, 'channel') const channel = Object.prototype.hasOwnProperty.call(channelObj, 'channel')
? channelObj.channel ? channelObj.channel

Loading…
Cancel
Save