find => some
This commit is contained in:
parent
cdc76e3d95
commit
8c9fe047aa
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue