Merge pull request #4 from lbryio/search-fix
fix: check that claim exists before checking value
This commit is contained in:
commit
800083dc24
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ export const selectSearchDownloadUris = query =>
|
||||||
|
|
||||||
if (channelName) {
|
if (channelName) {
|
||||||
const claim = claimsById[claimId];
|
const claim = claimsById[claimId];
|
||||||
if (claim.value) {
|
if (claim && claim.value) {
|
||||||
uriParams.claimId = claim.value.publisherSignature.certificateId;
|
uriParams.claimId = claim.value.publisherSignature.certificateId;
|
||||||
} else {
|
} else {
|
||||||
uriParams.claimId = claimId;
|
uriParams.claimId = claimId;
|
||||||
|
|
Loading…
Reference in a new issue