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