From d79ce208026121b53c22e28cc0e9dda3590d6d06 Mon Sep 17 00:00:00 2001 From: Rafael Date: Tue, 3 May 2022 08:11:17 -0300 Subject: [PATCH] Fix polling from fileRenderInitiator logic --- ui/component/fileRenderInitiator/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/component/fileRenderInitiator/view.jsx b/ui/component/fileRenderInitiator/view.jsx index d0b92a649..f30e17829 100644 --- a/ui/component/fileRenderInitiator/view.jsx +++ b/ui/component/fileRenderInitiator/view.jsx @@ -105,7 +105,8 @@ export default function FileRenderInitiator(props: Props) { history.push(`/$/${PAGES.AUTH}?redirect=${encodeURIComponent(pathname)}`); } - useFetchLiveStatus(livestreamPage ? undefined : channelClaimId, doFetchChannelLiveStatus); + // in case of a livestream outside of the livestream page component, like embed + useFetchLiveStatus(isLivestreamClaim && !livestreamPage ? channelClaimId : undefined, doFetchChannelLiveStatus); const thumbnail = useThumbnail(claimThumbnail, containerRef);