From 5a43b5f5663c663877b677141771bd34a11aad61 Mon Sep 17 00:00:00 2001 From: DispatchCommit Date: Sat, 19 Jun 2021 11:55:57 -0700 Subject: [PATCH] fix incorrect variable being used to determine view state --- ui/component/fileViewCount/view.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/component/fileViewCount/view.jsx b/ui/component/fileViewCount/view.jsx index 9881b3f4d..8a40c0fd7 100644 --- a/ui/component/fileViewCount/view.jsx +++ b/ui/component/fileViewCount/view.jsx @@ -37,12 +37,12 @@ function FileViewCount(props: Props) { return ( - {isLive && + {livestream && __('%viewer_count% currently %viewer_state%', { viewer_count: activeViewers === undefined ? '...' : activeViewers, viewer_state: isLive ? __('watching') : __('waiting'), })} - {!isLive && + {!livestream && activeViewers === undefined && (viewCount !== 1 ? __('%view_count% views', { view_count: formattedViewCount }) : __('1 view'))} {!SIMPLE_SITE && }