diff --git a/src/components/PageComponents/Connect/BLE.tsx b/src/components/PageComponents/Connect/BLE.tsx index 0ed24dc9..6c261319 100644 --- a/src/components/PageComponents/Connect/BLE.tsx +++ b/src/components/PageComponents/Connect/BLE.tsx @@ -17,16 +17,16 @@ export const BLE = (): JSX.Element => { }, []); useEffect(() => { - void updateBleDeviceList(); + updateBleDeviceList(); }, [updateBleDeviceList]); - const onConnect = async (BLEDevice: BluetoothDevice) => { + const onConnect = async (bleDevice: BluetoothDevice) => { const id = randId(); const device = addDevice(id); setSelectedDevice(id); const connection = new IBLEConnection(id); await connection.connect({ - device: BLEDevice, + device: bleDevice, }); device.addConnection(connection); subscribeAll(device, connection); @@ -39,7 +39,7 @@ export const BLE = (): JSX.Element => {