make sure channel is valid before reading permanent_url

This commit is contained in:
Sean Yesmunt 2020-03-27 11:52:35 -04:00
parent 7e093c31f3
commit 6c0436cf14
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -2354,7 +2354,7 @@ const makeSelectFirstRecommendedFileForUri = uri => reselect.createSelector(make
// accepts a regular claim uri lbry://something
// returns the channel uri that created this claim lbry://@channel
const makeSelectChannelForClaimUri = (uri, includePrefix = false) => reselect.createSelector(makeSelectClaimForUri(uri), claim => {
if (!claim || !claim.signing_channel) {
if (!claim || !claim.signing_channel || !claim.is_channel_signature_valid) {
return null;
}

View file

@ -576,7 +576,7 @@ export const makeSelectChannelForClaimUri = (uri: string, includePrefix: boolean
createSelector(
makeSelectClaimForUri(uri),
(claim: ?Claim) => {
if (!claim || !claim.signing_channel) {
if (!claim || !claim.signing_channel || !claim.is_channel_signature_valid) {
return null;
}