From 9665f2d1c818f1a86b2e5daab642f6879746f25f Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 22 Apr 2019 17:24:03 -0400 Subject: [PATCH] fix for new sdk --- dist/bundle.es.js | 2 +- dist/bundle.js | 2 +- src/redux/actions/cost_info.js | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 625ec4e..7fc5a4a 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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) { resolve({ diff --git a/dist/bundle.js b/dist/bundle.js index a3ad087..20cdfac 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -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) { resolve({ diff --git a/src/redux/actions/cost_info.js b/src/redux/actions/cost_info.js index 35791d9..640800d 100644 --- a/src/redux/actions/cost_info.js +++ b/src/redux/actions/cost_info.js @@ -20,10 +20,7 @@ export 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) { resolve({ cost: 0, includesData: true });