find => some

This commit is contained in:
Sean Yesmunt 2020-01-29 11:16:03 -05:00
parent cdc76e3d95
commit 8c9fe047aa

View file

@ -107,11 +107,11 @@ export const makeSelectNextUnplayedRecommended = (uri: string) =>
const claim = claimsByUri[recommendedUri]; const claim = claimsByUri[recommendedUri];
const channel = claim && claim.signing_channel; 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; continue;
} }
if (!history.find(item => item.uri === recommendedForUri[i])) { if (!history.some(item => item.uri === recommendedForUri[i])) {
return recommendedForUri[i]; return recommendedForUri[i];
} }
} }