Skip to content

Commit

Permalink
fix(stats): show 0 if stream is offline (#2943)
Browse files Browse the repository at this point in the history
Fixes #2936
  • Loading branch information
sogehige committed Nov 4, 2019
1 parent 7a22caf commit fb6b641
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/overlay/views/stats.vue
Expand Up @@ -2,7 +2,7 @@
<span id="stats">
<span class="item viewers">
<font-awesome-icon icon="eye" />
<span>{{ stats.viewers }}</span>
<span>{{ stats.uptime === '00:00:00' ? '0' : stats.viewers }}</span>
<span class="text"></span>
</span>

Expand All @@ -14,19 +14,19 @@

<span class="item followers">
<font-awesome-icon icon="users" />
<span>{{ stats.followers }}</span>
<span>{{ stats.uptime === '00:00:00' ? '0' : stats.followers }}</span>
<span class="text"></span>
</span>

<span class="item subscribers">
<font-awesome-icon icon="star" />
<span>{{ stats.subscribers }}</span>
<span>{{ stats.uptime === '00:00:00' ? '0' : stats.subscribers }}</span>
<span class="text"></span>
</span>

<span class="item bits">
<font-awesome-icon icon="gem" />
<span>{{ stats.bits }}</span>
<span>{{ stats.uptime === '00:00:00' ? '0' : stats.bits }}</span>
<span class="text"></span>
</span>
</span>
Expand Down

0 comments on commit fb6b641

Please sign in to comment.