From 59b732844c7fb5dc83efc549845eb60ae4e2a0f5 Mon Sep 17 00:00:00 2001 From: Matvei Andrienko Date: Fri, 29 Nov 2024 13:18:44 +0100 Subject: [PATCH] fix typo --- packages/client/src/devices/devices.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/devices/devices.ts b/packages/client/src/devices/devices.ts index 193fd0096..25184c2c6 100644 --- a/packages/client/src/devices/devices.ts +++ b/packages/client/src/devices/devices.ts @@ -197,7 +197,7 @@ export const getAudioStream = async ( } catch (error) { if ( error instanceof DOMException && - error.name === 'OverconstainedError' && + error.name === 'OverconstrainedError' && trackConstraints?.deviceId ) { const { deviceId, ...relaxedContraints } = trackConstraints; @@ -243,7 +243,7 @@ export const getVideoStream = async ( } catch (error) { if ( error instanceof DOMException && - error.name === 'OverconstainedError' && + error.name === 'OverconstrainedError' && trackConstraints?.deviceId ) { const { deviceId, ...relaxedContraints } = trackConstraints;