From 3f8f25dc431adf131c2006419af463b53bab1455 Mon Sep 17 00:00:00 2001 From: liamcardenas Date: Wed, 7 Mar 2018 11:41:14 -0800 Subject: [PATCH] let --> const --- src/renderer/redux/actions/content.js | 2 +- src/renderer/redux/actions/subscriptions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/redux/actions/content.js b/src/renderer/redux/actions/content.js index 9962d7e69..bdf831a03 100644 --- a/src/renderer/redux/actions/content.js +++ b/src/renderer/redux/actions/content.js @@ -360,7 +360,7 @@ export function doFetchClaimsByChannel(uri, page) { const { claims_in_channel: claimsInChannel, returned_page: returnedPage } = claimResult; if (claimsInChannel && claimsInChannel.length) { - let latest = claimsInChannel[0]; + const latest = claimsInChannel[0]; dispatch( setSubscriptionLatest( { diff --git a/src/renderer/redux/actions/subscriptions.js b/src/renderer/redux/actions/subscriptions.js index 5dca7d859..650f98a9b 100644 --- a/src/renderer/redux/actions/subscriptions.js +++ b/src/renderer/redux/actions/subscriptions.js @@ -48,7 +48,7 @@ export const doCheckSubscription = (subscription: Subscription) => (dispatch: Di const claimResult = result[subscription.uri] || {}; const { claims_in_channel: claimsInChannel } = claimResult; - let count = subscription.latest + const count = subscription.latest ? claimsInChannel.reduce( (prev, cur, index) => buildURI({ contentName: cur.name, claimId: cur.claim_id }, false) ===