From 594a5fd92f8a4cfa3e5cf7b6bdfedfb1ef256c9e Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 2 May 2024 17:24:29 +0200 Subject: [PATCH] prettier Signed-off-by: Timo K --- src/room/VideoPreview.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx index e198bdbc..49342c42 100644 --- a/src/room/VideoPreview.tsx +++ b/src/room/VideoPreview.tsx @@ -68,7 +68,8 @@ export const VideoPreview: FC = ({ deviceId: devices.audioInput.selectedId, }; - const localTrackOptions = useMemo(() => ({ + const localTrackOptions = useMemo( + () => ({ // The only reason we request audio here is to get the audio permission // request over with at the same time. But changing the audio settings // shouldn't cause this hook to recreate the track, which is why we @@ -79,8 +80,9 @@ export const VideoPreview: FC = ({ video: muteStates.video.enabled && { deviceId: devices.videoInput.selectedId, }, - }; - }, [devices.videoInput.selectedId, muteStates.video.enabled]); + }), + [devices.videoInput.selectedId, muteStates.video.enabled], + ); const onError = useCallback( (error: Error) => {