diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 7d787e2..c4838a2 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2224,7 +2224,8 @@ const makeSelectClaimForUri = (uri, returnRepost = true) => reselect.createSelec return _extends$3({}, repostedClaim, { repost_url: uri, - repost_channel_url: channelUrl + repost_channel_url: channelUrl, + repost_amount: claim && claim.meta && claim.meta.effective_amount }); } else { return claim; diff --git a/dist/flow-typed/Claim.js b/dist/flow-typed/Claim.js index 0b97c0e..d8af692 100644 --- a/dist/flow-typed/Claim.js +++ b/dist/flow-typed/Claim.js @@ -33,6 +33,8 @@ declare type GenericClaim = { value_type: 'stream' | 'channel', signing_channel?: ChannelClaim, repost_channel_url?: string, + repost_url?: string, + repost_bid_amount?: string, purchase_receipt?: PurchaseReceipt, meta: { activation_height: number, diff --git a/flow-typed/Claim.js b/flow-typed/Claim.js index 0b97c0e..d8af692 100644 --- a/flow-typed/Claim.js +++ b/flow-typed/Claim.js @@ -33,6 +33,8 @@ declare type GenericClaim = { value_type: 'stream' | 'channel', signing_channel?: ChannelClaim, repost_channel_url?: string, + repost_url?: string, + repost_bid_amount?: string, purchase_receipt?: PurchaseReceipt, meta: { activation_height: number, diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 1a8b29c..c77c19d 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -127,6 +127,7 @@ export const makeSelectClaimForUri = (uri: string, returnRepost: boolean = true) ...repostedClaim, repost_url: uri, repost_channel_url: channelUrl, + repost_amount: claim && claim.meta && claim.meta.effective_amount, }; } else { return claim; @@ -258,8 +259,8 @@ export const makeSelectMyPurchasesForPage = (query: ?string, page: number = 1) = const end = Number(page) * Number(PAGE_SIZE); return matchingFileInfos && matchingFileInfos.length ? matchingFileInfos - .slice(start, end) - .map(fileInfo => fileInfo.canonical_url || fileInfo.permanent_url) + .slice(start, end) + .map(fileInfo => fileInfo.canonical_url || fileInfo.permanent_url) : []; } ); @@ -365,8 +366,8 @@ export const makeSelectDateForUri = (uri: string) => (claim.value.release_time ? claim.value.release_time * 1000 : claim.meta && claim.meta.creation_timestamp - ? claim.meta.creation_timestamp * 1000 - : null); + ? claim.meta.creation_timestamp * 1000 + : null); if (!timestamp) { return undefined; }