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) { 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;