🩹(frontend) fix double await in Join.tsx

Remove redundant await in videoTrack.setDeviceId call
to avoid unnecessary promise chaining.
This commit is contained in:
lebaudantoine
2026-03-03 19:21:59 +01:00
committed by aleb_the_flash
parent 4ad897e756
commit 41b171da68

View File

@@ -753,7 +753,7 @@ export const Join = ({
try {
saveVideoInputDeviceId(id)
if (videoTrack) {
await await videoTrack.setDeviceId({ exact: id })
await videoTrack.setDeviceId({ exact: id })
}
} catch (err) {
console.error('Failed to switch camera device', err)