From 0944944335f0045065b1710863b97bd1b2cb81b5 Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 25 Mar 2021 17:46:06 -0400 Subject: [PATCH] fix claimHasSource selector --- dist/bundle.es.js | 2 +- src/redux/selectors/claims.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index efdf3de..7abcbc6 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2681,7 +2681,7 @@ const makeSelectClaimHasSource = uri => reselect.createSelector(makeSelectClaimF return false; } - return Boolean(claim.value.source); + return Boolean(claim.value.source && claim.value_type === 'stream'); }); const makeSelectTotalStakedAmountForChannelUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), claim => { diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index e5af6ab..e37a30b 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -867,7 +867,7 @@ export const makeSelectClaimHasSource = (uri: string) => return false; } - return Boolean(claim.value.source); + return Boolean(claim.value.source && claim.value_type === 'stream'); } );