From 3216d68470c6324557ab76dcb0d04503961e82d8 Mon Sep 17 00:00:00 2001 From: Jake Janicke Date: Wed, 4 Mar 2026 16:05:56 -0600 Subject: [PATCH] Make screenShareVolume safer Signed-off-by: Jake Janicke --- src/tile/SpotlightTile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tile/SpotlightTile.tsx b/src/tile/SpotlightTile.tsx index 411d730e..e274877c 100644 --- a/src/tile/SpotlightTile.tsx +++ b/src/tile/SpotlightTile.tsx @@ -290,7 +290,7 @@ export const SpotlightTile: FC = ({ ? VolumeOffIcon : VolumeOnIcon; const screenShareVolume = useBehavior( - isScreenShare + isScreenShare && (currentMedia as RemoteScreenShareViewModel).playbackVolume$ != null ? (currentMedia as RemoteScreenShareViewModel).playbackVolume$ : constant(0), );