Make screenShareVolume safer
Signed-off-by: Jake Janicke <jaketripplj@gmail.com>
This commit is contained in:
@@ -290,7 +290,7 @@ export const SpotlightTile: FC<Props> = ({
|
|||||||
? VolumeOffIcon
|
? VolumeOffIcon
|
||||||
: VolumeOnIcon;
|
: VolumeOnIcon;
|
||||||
const screenShareVolume = useBehavior(
|
const screenShareVolume = useBehavior(
|
||||||
isScreenShare
|
isScreenShare && (currentMedia as RemoteScreenShareViewModel).playbackVolume$ != null
|
||||||
? (currentMedia as RemoteScreenShareViewModel).playbackVolume$
|
? (currentMedia as RemoteScreenShareViewModel).playbackVolume$
|
||||||
: constant(0),
|
: constant(0),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user