From 3bbc9aabca1437214cba012b8e9edd02f684842c Mon Sep 17 00:00:00 2001 From: zeppi Date: Mon, 5 Jul 2021 15:41:55 -0400 Subject: [PATCH] fix pending ids selector --- dist/bundle.es.js | 2 +- src/redux/selectors/claims.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index e2f4853..72d93c5 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2412,7 +2412,7 @@ const selectClaimsByUri = reselect.createSelector(selectClaimIdsByUri, selectCla const selectAllClaimsByChannel = reselect.createSelector(selectState$1, state => state.paginatedClaimsByChannel || {}); -const selectPendingIds = reselect.createSelector(selectState$1, state => Object.keys(state.pendingIds) || []); +const selectPendingIds = reselect.createSelector(selectState$1, state => Object.keys(state.pendingById) || []); const selectPendingClaims = reselect.createSelector(selectPendingClaimsById, pendingById => Object.values(pendingById)); diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 0fab1c1..2071913 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -85,7 +85,7 @@ export const selectAllClaimsByChannel = createSelector( export const selectPendingIds = createSelector( selectState, - state => Object.keys(state.pendingIds) || [] + state => Object.keys(state.pendingById) || [] ); export const selectPendingClaims = createSelector( @@ -299,8 +299,8 @@ export const makeSelectMyPurchasesForPage = (query: ?string, page: number = 1) = const end = Number(page) * Number(CLAIM.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) : []; } ); @@ -393,8 +393,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; } -- 2.45.2