Hotfix livestream status (#292)
* Fix livestream status on upcoming livestream * update fix
This commit is contained in:
parent
70d18eba59
commit
e02bc6cc03
1 changed files with 4 additions and 1 deletions
|
@ -55,7 +55,10 @@ export default function LivestreamPage(props: Props) {
|
||||||
}, [livestreamChannelId, isLive]);
|
}, [livestreamChannelId, isLive]);
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (!hasLivestreamClaim || !livestreamChannelId) return;
|
if (!hasLivestreamClaim || !livestreamChannelId) {
|
||||||
|
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