From cd49dc65d49ad1931ab9c44ccbf75a3697d4d3de Mon Sep 17 00:00:00 2001 From: Ravi theja Date: Tue, 15 Oct 2024 14:41:32 +0530 Subject: [PATCH] fix: device category check --- .../hms-video-store/src/device-manager/DeviceManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/hms-video-store/src/device-manager/DeviceManager.ts b/packages/hms-video-store/src/device-manager/DeviceManager.ts index d6d4e5281f..41ef7972b7 100644 --- a/packages/hms-video-store/src/device-manager/DeviceManager.ts +++ b/packages/hms-video-store/src/device-manager/DeviceManager.ts @@ -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; } }