From e3d12fb896b44ee68685d63566bf223ea82b917a Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 26 Jul 2019 08:17:52 +0100 Subject: [PATCH] fix thumbnail url trim --- dist/bundle.es.js | 2 +- src/redux/selectors/claims.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 659d58f..f0e52b7 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1366,7 +1366,7 @@ const makeSelectContentTypeForUri = uri => reselect.createSelector(makeSelectCla const makeSelectThumbnailForUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), claim => { const thumbnail = claim && claim.value && claim.value.thumbnail; - return thumbnail && thumbnail.url && thumbnail.url.trim().length() > 0 ? thumbnail.url : undefined; + return thumbnail && thumbnail.url && thumbnail.url.trim().length > 0 ? thumbnail.url : undefined; }); const makeSelectCoverForUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), claim => { diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index ba50ac5..3037402 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -228,7 +228,7 @@ export const makeSelectThumbnailForUri = (uri: string) => makeSelectClaimForUri(uri), claim => { const thumbnail = claim && claim.value && claim.value.thumbnail; - return thumbnail && thumbnail.url && thumbnail.url.trim().length() > 0 ? thumbnail.url : undefined; + return thumbnail && thumbnail.url && thumbnail.url.trim().length > 0 ? thumbnail.url : undefined; } );