Swap conditional ordering

Co-authored-by: Robin <robin@robin.town>
This commit is contained in:
Johannes Marbach
2026-09-28 17:56:08 +02:00
committed by GitHub
co-authored by Robin
parent 3f63a6fc3c
commit e393b6a984
+3 -3
View File
@@ -102,9 +102,9 @@ export function createBaseUserMedia(
scope.behavior(
combineLatest([participant$, showConnectionStats.value$]).pipe(
switchMap(([p, showConnectionStats]) =>
!p || !showConnectionStats
? of(undefined)
: observeRtpStreamStats$(p, source, statsType),
p && showConnectionStats
? observeRtpStreamStats$(p, source, statsType)
: of(undefined),
),
),
);