From da7ad149783f2c1b6687992dea8727b3c5d9087c Mon Sep 17 00:00:00 2001 From: Timo <16718859+toger5@users.noreply.github.com> Date: Thu, 2 May 2024 16:51:56 +0200 Subject: [PATCH] Update src/room/VideoPreview.tsx Co-authored-by: Robin --- src/room/VideoPreview.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/room/VideoPreview.tsx b/src/room/VideoPreview.tsx index 43198ab9..e198bdbc 100644 --- a/src/room/VideoPreview.tsx +++ b/src/room/VideoPreview.tsx @@ -68,8 +68,7 @@ export const VideoPreview: FC = ({ deviceId: devices.audioInput.selectedId, }; - const localTrackOptions = useMemo(() => { - return { + 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