diff --git a/ui/page/livestream/view.jsx b/ui/page/livestream/view.jsx index 1581fc52f..1d70dd7c7 100644 --- a/ui/page/livestream/view.jsx +++ b/ui/page/livestream/view.jsx @@ -15,20 +15,14 @@ type Props = { }; export default function LivestreamPage(props: Props) { - const { - uri, - claim, - doSetPlayingUri, - isAuthenticated, - doUserSetReferrer, - channelClaim, - } = props; + const { uri, claim, doSetPlayingUri, isAuthenticated, doUserSetReferrer, channelClaim } = props; const [activeViewers, setActiveViewers] = React.useState(0); const [isLive, setIsLive] = React.useState(false); const livestreamChannelId = channelClaim && channelClaim.signing_channel && channelClaim.signing_channel.claim_id; React.useEffect(() => { function checkIsLive() { + // $FlowFixMe Bitwave's API can handle garbage fetch(`${BITWAVE_API}/${livestreamChannelId}`) .then((res) => res.json()) .then((res) => { @@ -87,11 +81,7 @@ export default function LivestreamPage(props: Props) { return ( - + ); }