fix for #517, I think

This commit is contained in:
Jeremy Kauffman 2017-08-30 16:56:14 -04:00
parent b9d3f024d9
commit f12e3551e2

View file

@ -35,7 +35,11 @@ export function doFetchCostInfoForUri(uri) {
if (isGenerous && claim) { if (isGenerous && claim) {
let cost; 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) { if (fee === undefined) {
resolve({ cost: 0, includesData: true }); resolve({ cost: 0, includesData: true });
} else if (fee.currency == "LBC") { } else if (fee.currency == "LBC") {