From 8c9fe047aa18836d1af5c85b91404fb64b9d6101 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 29 Jan 2020 11:16:03 -0500 Subject: [PATCH] find => some --- ui/redux/selectors/content.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/redux/selectors/content.js b/ui/redux/selectors/content.js index 6870a7b80..37ccfc4f1 100644 --- a/ui/redux/selectors/content.js +++ b/ui/redux/selectors/content.js @@ -107,11 +107,11 @@ export const makeSelectNextUnplayedRecommended = (uri: string) => const claim = claimsByUri[recommendedUri]; const channel = claim && claim.signing_channel; - if (channel && blockedChannels.find(blockedUri => blockedUri === channel.permanent_url)) { + if (channel && blockedChannels.some(blockedUri => blockedUri === channel.permanent_url)) { continue; } - if (!history.find(item => item.uri === recommendedForUri[i])) { + if (!history.some(item => item.uri === recommendedForUri[i])) { return recommendedForUri[i]; } }