remove unused variables from LiveStreamSetup

This commit is contained in:
DispatchCommit 2021-03-22 14:22:34 -07:00
parent 0ec31d3c29
commit 8ae7247c35

View file

@ -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([]); const [livestreamClaims, setLivestreamClaims] = React.useState([]);
React.useEffect(() => { React.useEffect(() => {
@ -72,16 +70,13 @@ export default function LivestreamSetupPage(props: Props) {
}) })
.then((res) => { .then((res) => {
if (res && res.items && res.items.length > 0) { if (res && res.items && res.items.length > 0) {
const claim = res.items[res.items.length - 1];
setLivestreamClaims(res.items.reverse()); setLivestreamClaims(res.items.reverse());
} else { } else {
setLivestreamClaims([]); setLivestreamClaims([]);
setIsFetching(false);
} }
}) })
.catch(() => { .catch(() => {
setLivestreamClaims([]); setLivestreamClaims([]);
setIsFetching(false);
}); });
}, [activeChannelClaimStr]); }, [activeChannelClaimStr]);