reverse livestream status check (#293)
This commit is contained in:
parent
e02bc6cc03
commit
0c28f3c6f1
1 changed files with 1 additions and 4 deletions
|
@ -55,10 +55,7 @@ export default function LivestreamPage(props: Props) {
|
||||||
}, [livestreamChannelId, isLive]);
|
}, [livestreamChannelId, isLive]);
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!hasLivestreamClaim || !livestreamChannelId) {
|
if (!hasLivestreamClaim || !livestreamChannelId) return;
|
||||||
setIsLive(false);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return watchLivestreamStatus(livestreamChannelId, (state) => setIsLive(state));
|
return watchLivestreamStatus(livestreamChannelId, (state) => setIsLive(state));
|
||||||
}, [livestreamChannelId, setIsLive, hasLivestreamClaim]);
|
}, [livestreamChannelId, setIsLive, hasLivestreamClaim]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue