Use Array.some where it's appropriate

This commit is contained in:
Robin
2024-07-17 16:06:48 -04:00
parent 12b719da95
commit 1efa594430

View File

@@ -377,7 +377,7 @@ export class CallViewModel extends ViewModel {
private readonly hasRemoteScreenShares: Observable<boolean> =
this.screenShares.pipe(
map((ms) => ms.find((m) => !m.vm.local) !== undefined),
map((ms) => ms.some((m) => !m.vm.local)),
distinctUntilChanged(),
);