From bfbaa0dbdd2c1b2b340c0760d0d97c99f3cefb02 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 30 Jan 2020 17:44:08 -0500 Subject: [PATCH] fix typo --- dist/bundle.es.js | 4 +++- src/redux/selectors/claims.js | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 523d972..f029ce8 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2019,8 +2019,10 @@ const makeSelectClaimForUri = uri => reselect.createSelector(selectClaimsByUri, const repostedClaim = claim.reposted_claim; if (repostedClaim) { + const channelUrl = claim.signing_channel && claim.signing_channel.canonical_url; + return _extends$4({}, repostedClaim, { - repost_channel_url: claim.canonical_url + repost_channel_url: channelUrl }); } else { return claim; diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 51e5e33..cc8aff6 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -130,9 +130,11 @@ export const makeSelectClaimForUri = (uri: string) => const repostedClaim = claim.reposted_claim; if (repostedClaim) { + const channelUrl = claim.signing_channel && claim.signing_channel.canonical_url; + return { ...repostedClaim, - repost_channel_url: claim.canonical_url, + repost_channel_url: channelUrl, }; } else { return claim; @@ -277,8 +279,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; } @@ -528,11 +530,16 @@ export const makeSelectRecommendedContentForUri = (uri: string) => return; } - const options = { related_to: claim.claim_id } + const options = { related_to: claim.claim_id }; if (!isMature) { options['nsfw'] = false; } - const searchQuery = getSearchQueryString(title.replace(/\//, ' '), undefined, undefined, options); + const searchQuery = getSearchQueryString( + title.replace(/\//, ' '), + undefined, + undefined, + options + ); let searchUris = searchUrisByQuery[searchQuery]; if (searchUris) {