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]);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!hasLivestreamClaim || !livestreamChannelId) {
|
||||
setIsLive(false);
|
||||
return;
|
||||
}
|
||||
if (!hasLivestreamClaim || !livestreamChannelId) return;
|
||||
return watchLivestreamStatus(livestreamChannelId, (state) => setIsLive(state));
|
||||
}, [livestreamChannelId, setIsLive, hasLivestreamClaim]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue