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

Commit

Permalink
peers should show '0' if there are no peers
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Jun 20, 2017
1 parent a638628 commit a9dcda6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/js/components/health.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ module.exports = function hyperhealth (state, emit) {
<div class="">
<div class="${styles} dat-details">
<div class="dat-detail">${prettyBytes(data.byteLength)}</div>
<div class="dat-detail">${peers > 0 ? html`
<span>${peers} source${plural(peers)} available</span>
`
: ''}
</div>
<div class="dat-detail">${html`<span>${peers} source${plural(peers)} available</span>`}</div>
${state.archive.updatedAt ? html`<div class="dat-detail">
updated ${relative(state.archive.updatedAt)}
</div>` : ''}
Expand Down

0 comments on commit a9dcda6

Please sign in to comment.