patch hubs claims_in_channel temporarily
This commit is contained in:
parent
d54976e461
commit
f7b942fa42
2 changed files with 6 additions and 2 deletions
|
@ -56,7 +56,8 @@ function ChannelContent(props: Props) {
|
||||||
claimType,
|
claimType,
|
||||||
empty,
|
empty,
|
||||||
} = props;
|
} = props;
|
||||||
const claimsInChannel = (claim && claim.meta.claims_in_channel && 1) || 0;
|
// const claimsInChannel = (claim && claim.meta.claims_in_channel) || 0;
|
||||||
|
const claimsInChannel = 9999;
|
||||||
const [searchQuery, setSearchQuery] = React.useState('');
|
const [searchQuery, setSearchQuery] = React.useState('');
|
||||||
const [searchResults, setSearchResults] = React.useState(undefined);
|
const [searchResults, setSearchResults] = React.useState(undefined);
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -18,7 +18,10 @@ export default function LivestreamLink(props: Props) {
|
||||||
const [livestreamClaim, setLivestreamClaim] = React.useState(false);
|
const [livestreamClaim, setLivestreamClaim] = React.useState(false);
|
||||||
const [isLivestreaming, setIsLivestreaming] = React.useState(false);
|
const [isLivestreaming, setIsLivestreaming] = React.useState(false);
|
||||||
const livestreamChannelId = (channelClaim && channelClaim.claim_id) || ''; // TODO: fail in a safer way, probably
|
const livestreamChannelId = (channelClaim && channelClaim.claim_id) || ''; // TODO: fail in a safer way, probably
|
||||||
const isChannelEmpty = !channelClaim || !channelClaim.meta || !channelClaim.meta.claims_in_channel;
|
// TODO: pput this back when hubs claims_in_channel are fixed
|
||||||
|
const isChannelEmpty = !channelClaim || !channelClaim.meta;
|
||||||
|
// ||
|
||||||
|
// !channelClaim.meta.claims_in_channel;
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
// Don't search empty channels
|
// Don't search empty channels
|
||||||
|
|
Loading…
Add table
Reference in a new issue