Fix polling from fileRenderInitiator logic

This commit is contained in:
Rafael 2022-05-03 08:11:17 -03:00 committed by Thomas Zarebczan
parent 810692ca29
commit d79ce20802

View file

@ -105,7 +105,8 @@ export default function FileRenderInitiator(props: Props) {
history.push(`/$/${PAGES.AUTH}?redirect=${encodeURIComponent(pathname)}`); 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); const thumbnail = useThumbnail(claimThumbnail, containerRef);