let --> const
This commit is contained in:
parent
1e1c494367
commit
3f8f25dc43
2 changed files with 2 additions and 2 deletions
|
@ -360,7 +360,7 @@ export function doFetchClaimsByChannel(uri, page) {
|
||||||
const { claims_in_channel: claimsInChannel, returned_page: returnedPage } = claimResult;
|
const { claims_in_channel: claimsInChannel, returned_page: returnedPage } = claimResult;
|
||||||
|
|
||||||
if (claimsInChannel && claimsInChannel.length) {
|
if (claimsInChannel && claimsInChannel.length) {
|
||||||
let latest = claimsInChannel[0];
|
const latest = claimsInChannel[0];
|
||||||
dispatch(
|
dispatch(
|
||||||
setSubscriptionLatest(
|
setSubscriptionLatest(
|
||||||
{
|
{
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const doCheckSubscription = (subscription: Subscription) => (dispatch: Di
|
||||||
const claimResult = result[subscription.uri] || {};
|
const claimResult = result[subscription.uri] || {};
|
||||||
const { claims_in_channel: claimsInChannel } = claimResult;
|
const { claims_in_channel: claimsInChannel } = claimResult;
|
||||||
|
|
||||||
let count = subscription.latest
|
const count = subscription.latest
|
||||||
? claimsInChannel.reduce(
|
? claimsInChannel.reduce(
|
||||||
(prev, cur, index) =>
|
(prev, cur, index) =>
|
||||||
buildURI({ contentName: cur.name, claimId: cur.claim_id }, false) ===
|
buildURI({ contentName: cur.name, claimId: cur.claim_id }, false) ===
|
||||||
|
|
Loading…
Reference in a new issue