fix subscriptions
This commit is contained in:
parent
2d95c5a337
commit
87cab7d355
1 changed files with 1 additions and 2 deletions
|
@ -236,8 +236,7 @@ export const doCheckSubscription = (subscriptionUri: string, shouldNotify?: bool
|
||||||
// We may be duplicating calls here. Can this logic be baked into doFetchClaimsByChannel?
|
// We may be duplicating calls here. Can this logic be baked into doFetchClaimsByChannel?
|
||||||
Lbry.claim_search({ channel_id: claimId, page: 1, page_size: PAGE_SIZE }).then(
|
Lbry.claim_search({ channel_id: claimId, page: 1, page_size: PAGE_SIZE }).then(
|
||||||
claimListByChannel => {
|
claimListByChannel => {
|
||||||
const claimResult = claimListByChannel[subscriptionUri] || {};
|
const { items: claimsInChannel } = claimListByChannel;
|
||||||
const { claims_in_channel: claimsInChannel } = claimResult;
|
|
||||||
|
|
||||||
// may happen if subscribed to an abandoned channel or an empty channel
|
// may happen if subscribed to an abandoned channel or an empty channel
|
||||||
if (!claimsInChannel || !claimsInChannel.length) {
|
if (!claimsInChannel || !claimsInChannel.length) {
|
||||||
|
|
Loading…
Reference in a new issue