Browse Source

fix(wallet): hide zero channel balance

If the total channel balance is zero, do not show the channel balance at
the top of the network view as the zero doesn't convey any useful
information and looks strange.
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
ba361ee1cf
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 14
      app/components/Contacts/Network/Network.js

14
app/components/Contacts/Network/Network.js

@ -173,12 +173,14 @@ class Network extends Component {
<FormattedMessage {...messages.title} /> <FormattedMessage {...messages.title} />
</h2> </h2>
<span className={styles.channelAmount}> <span className={styles.channelAmount}>
<Value {Boolean(balance.channelBalance) && (
value={balance.channelBalance} <Value
currency={ticker.currency} value={balance.channelBalance}
currentTicker={currentTicker} currency={ticker.currency}
fiatTicker={ticker.fiatTicker} currentTicker={currentTicker}
/> fiatTicker={ticker.fiatTicker}
/>
)}
{Boolean(fiatAmount) && ( {Boolean(fiatAmount) && (
<span> <span>
{'≈ '} {'≈ '}

Loading…
Cancel
Save