fix: check that claim exists before checking value

This commit is contained in:
Sean Yesmunt 2018-04-05 11:45:17 -04:00
parent 6418b5a9f2
commit 006963322e

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;