Skip to content

Commit

Permalink
fix: device category check
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Oct 15, 2024
1 parent b9c97e5 commit cd49dc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hms-video-store/src/device-manager/DeviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,11 @@ export class DeviceManager implements HMSDeviceManager {
const deviceCategory = getAudioDeviceCategory(device.label);
if (deviceCategory === HMSAudioDeviceCategory.SPEAKERPHONE) {
speakerPhone = device;
} else if (HMSAudioDeviceCategory.WIRED) {
} else if (deviceCategory === HMSAudioDeviceCategory.WIRED) {
wired = device;
} else if (HMSAudioDeviceCategory.BLUETOOTH) {
} else if (deviceCategory === HMSAudioDeviceCategory.BLUETOOTH) {
bluetoothDevice = device;
} else if (HMSAudioDeviceCategory.EARPIECE) {
} else if (deviceCategory === HMSAudioDeviceCategory.EARPIECE) {
earpiece = device;
}
}
Expand Down

0 comments on commit cd49dc6

Please sign in to comment.