Merge pull request #4 from lbryio/search-fix

fix: check that claim exists before checking value
This commit is contained in:
Sean Yesmunt 2018-04-05 11:46:42 -04:00 committed by GitHub
commit 800083dc24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,7 +178,7 @@ export const selectSearchDownloadUris = query =>
if (channelName) {
const claim = claimsById[claimId];
if (claim.value) {
if (claim && claim.value) {
uriParams.claimId = claim.value.publisherSignature.certificateId;
} else {
uriParams.claimId = claimId;