From 006963322e38dfcf81b8f1a56fab28b933f410e0 Mon Sep 17 00:00:00 2001
From: Sean Yesmunt <sean.yesmunt@gmail.com>
Date: Thu, 5 Apr 2018 11:45:17 -0400
Subject: [PATCH] fix: check that claim exists before checking value

---
 src/redux/selectors/file_info.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/redux/selectors/file_info.js b/src/redux/selectors/file_info.js
index b971328..801ced0 100644
--- a/src/redux/selectors/file_info.js
+++ b/src/redux/selectors/file_info.js
@@ -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;