From ec996d8bf7936478cbb8420bee17d20dc07fa797 Mon Sep 17 00:00:00 2001 From: DispatchCommit Date: Mon, 22 Mar 2021 15:48:56 -0700 Subject: [PATCH] this has to fix the linting issue --- ui/page/livestream/view.jsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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 ( - + ); }