fix for v0.36 sdk #34

Merged
neb-b merged 1 commit from sdk into master 2019-04-23 16:35:59 +02:00
3 changed files with 3 additions and 6 deletions

2
dist/bundle.es.js vendored
View file

@ -1805,7 +1805,7 @@ function doFetchCostInfoForUri(uri) {
}); });
} }
const fee = claim.value && claim.value.stream && claim.value.stream.metadata ? claim.value.stream.metadata.fee : undefined; const fee = claim.value ? claim.value.fee : undefined;
if (fee === undefined) { if (fee === undefined) {
resolve({ resolve({

2
dist/bundle.js vendored
View file

@ -3157,7 +3157,7 @@ function doFetchCostInfoForUri(uri) {
}); });
} }
var fee = claim.value && claim.value.stream && claim.value.stream.metadata ? claim.value.stream.metadata.fee : undefined; var fee = claim.value ? claim.value.fee : undefined;
if (fee === undefined) { if (fee === undefined) {
resolve({ resolve({

View file

@ -20,10 +20,7 @@ export function doFetchCostInfoForUri(uri) {
}); });
} }
const fee = const fee = claim.value ? claim.value.fee : undefined;
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 });