remove unused variables from LiveStreamSetup
This commit is contained in:
parent
0ec31d3c29
commit
8ae7247c35
1 changed files with 0 additions and 5 deletions
|
@ -56,8 +56,6 @@ export default function LivestreamSetupPage(props: Props) {
|
|||
}`;
|
||||
}
|
||||
|
||||
const [isFetching, setIsFetching] = React.useState(true);
|
||||
const [isLive, setIsLive] = React.useState(false);
|
||||
const [livestreamClaims, setLivestreamClaims] = React.useState([]);
|
||||
|
||||
React.useEffect(() => {
|
||||
|
@ -72,16 +70,13 @@ export default function LivestreamSetupPage(props: Props) {
|
|||
})
|
||||
.then((res) => {
|
||||
if (res && res.items && res.items.length > 0) {
|
||||
const claim = res.items[res.items.length - 1];
|
||||
setLivestreamClaims(res.items.reverse());
|
||||
} else {
|
||||
setLivestreamClaims([]);
|
||||
setIsFetching(false);
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
setLivestreamClaims([]);
|
||||
setIsFetching(false);
|
||||
});
|
||||
}, [activeChannelClaimStr]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue