From 87cab7d355448ceb58e7a2cda9103042b268221b Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Wed, 24 Apr 2019 17:34:00 -0400 Subject: [PATCH] fix subscriptions --- src/ui/redux/actions/subscriptions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/redux/actions/subscriptions.js b/src/ui/redux/actions/subscriptions.js index 80fa5d098..6ac08af22 100644 --- a/src/ui/redux/actions/subscriptions.js +++ b/src/ui/redux/actions/subscriptions.js @@ -236,8 +236,7 @@ export const doCheckSubscription = (subscriptionUri: string, shouldNotify?: bool // 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( claimListByChannel => { - const claimResult = claimListByChannel[subscriptionUri] || {}; - const { claims_in_channel: claimsInChannel } = claimResult; + const { items: claimsInChannel } = claimListByChannel; // may happen if subscribed to an abandoned channel or an empty channel if (!claimsInChannel || !claimsInChannel.length) {