From f12e3551e24405bd246b5b1a929b05815cd8cf5b Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Wed, 30 Aug 2017 16:56:14 -0400 Subject: [PATCH] fix for #517, I think --- ui/js/actions/cost_info.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/js/actions/cost_info.js b/ui/js/actions/cost_info.js index 42025718f..6568a3575 100644 --- a/ui/js/actions/cost_info.js +++ b/ui/js/actions/cost_info.js @@ -35,7 +35,11 @@ export function doFetchCostInfoForUri(uri) { if (isGenerous && claim) { let cost; - const fee = claim.value.stream.metadata.fee; + const fee = claim.value && + claim.value.stream && + claim.value.stream.metadata + ? claim.value.stream.metadata.fee + : undefined; if (fee === undefined) { resolve({ cost: 0, includesData: true }); } else if (fee.currency == "LBC") {