Browse Source

Only show online client count if we are online. closes https://github.com/owncast/owncast/issues/1306

pull/1886/head
Gabe Kangas 5 years ago
parent
commit
1e436bdb67
  1. 3
      web/pages/chat/users.tsx

3
web/pages/chat/users.tsx

@ -64,9 +64,10 @@ export default function ChatUsers() {
When a stream is active and chat is enabled, connected chat clients will be displayed here. When a stream is active and chat is enabled, connected chat clients will be displayed here.
</p> </p>
); );
return ( return (
<> <>
<Title>Connected Chat Participants ({clients.length})</Title> <Title>Connected Chat Participants {online ? `(${clients.length})` : null}</Title>
{connectedUsers} {connectedUsers}
<br /> <br />
<br /> <br />

Loading…
Cancel
Save