diff --git a/src/components/PageComponents/Config/Device.tsx b/src/components/PageComponents/Config/Device.tsx index d0e1f029..7155e465 100644 --- a/src/components/PageComponents/Config/Device.tsx +++ b/src/components/PageComponents/Config/Device.tsx @@ -46,7 +46,7 @@ export const Device = (): JSX.Element => { "Lost and Found": Protobuf.Config.Config_DeviceConfig_Role.LOST_AND_FOUND, "TAK Tracker": - Protobuf.Config.Config_DeviceConfig_Role.SENSOR, + Protobuf.Config.Config_DeviceConfig_Role.TAK_TRACKER, }, formatEnumName: true, }, diff --git a/src/components/PageComponents/Connect/BLE.tsx b/src/components/PageComponents/Connect/BLE.tsx index 82d8dd41..b4799899 100644 --- a/src/components/PageComponents/Connect/BLE.tsx +++ b/src/components/PageComponents/Connect/BLE.tsx @@ -14,6 +14,7 @@ export const BLE = ({ closeDialog }: TabElementProps): JSX.Element => { const { setSelectedDevice } = useAppStore(); const updateBleDeviceList = useCallback(async (): Promise => { + if (!navigator.bluetooth.getDevices) return; setBleDevices(await navigator.bluetooth.getDevices()); }, []); @@ -65,6 +66,7 @@ export const BLE = ({ closeDialog }: TabElementProps): JSX.Element => { } }); }} + disabled={!navigator.bluetooth.getDevices} > New device diff --git a/src/components/UI/Dialog.tsx b/src/components/UI/Dialog.tsx index 019b8142..692b776c 100644 --- a/src/components/UI/Dialog.tsx +++ b/src/components/UI/Dialog.tsx @@ -41,6 +41,7 @@ const DialogContent = React.forwardRef< >(({ className, children, ...props }, ref) => ( +