🩹(frontend) fix double await in Join.tsx
Remove redundant await in videoTrack.setDeviceId call to avoid unnecessary promise chaining.
This commit is contained in:
committed by
aleb_the_flash
parent
4ad897e756
commit
41b171da68
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user