From 1e436bdb67f15d29caaa2325caf99f752ef5510a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 12 Aug 2021 23:51:13 -0700 Subject: [PATCH] Only show online client count if we are online. closes https://github.com/owncast/owncast/issues/1306 --- web/pages/chat/users.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pages/chat/users.tsx b/web/pages/chat/users.tsx index b8698e9ee..66de805db 100644 --- a/web/pages/chat/users.tsx +++ b/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.

); + return ( <> - Connected Chat Participants ({clients.length}) + Connected Chat Participants {online ? `(${clients.length})` : null} {connectedUsers}